Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2 won't compile

closed-invalid
nobody
None
5
2008-01-15
2008-01-15
Evan L. Carew
No

Just downloaded PHPCallGraph and tried it out on my Linux system. I got the following errors:

[root@r3-mobile bin]# ./phpcallgraph -o phpcall.ps /media/Dos/AcctPybl/server/Lib*

Parse error: parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in /root/projects/cat/phpcallgraph-0.6.4/src/PHPCallGraph.php on line 82

Discussion

  • Falko
    Falko
    2008-01-15

    Logged In: YES
    user_id=1029473
    Originator: NO

    Hi Evan,

    Unfortunately, you seem to be using a PHP version lower than PHP 5.1
    since type hinting for arrays has been introduced in that version.
    For further details see http://docs.php.net/manual/en/language.oop5.typehinting.php
    It would be absolutely no problem to remove the type hinting,
    but the call graph generation inherently depends on features of recent PHP versions.

    I'm not sure what exactly the minimum required PHP version is.
    I recommend at least PHP >= 5.2.
    If phpCallGraph not already depends on it, in one of the next releases it will definitely do so, since utilization of some newly introduced features of the reflection API is planned.

    I updated the documentation to state that requirement more clearly.

    Best regards,
    Falko

     
  • Falko
    Falko
    2008-01-15

    • status: open --> closed-invalid