ZendCodeAnalyzer oddity

From: Date: Wed, 31 Oct 2012 20:42:44 +0000
Subject: ZendCodeAnalyzer oddity
Groups: php.general 
Request: Send a blank email to php-general+get-319642@lists.php.net to get a copy of this message
Consider the following code: <?php class bob { static function factory() {
    echo  'In factory!<br>';
} } bob::factory(); $var = 'bob'; $var::factory(); ?> When I run this, "In Factory!" is displayed twice, as I would expect. So by all accounts, there's nothing wrong with the code. However, when I run that file through ZendCodeAnalyzer, I get the following error: (line 11): Zend Engine message: parse error [Zend Code Analyzer] Aborted. Line 11 is this: $var::factory(); So why is ZendCodeAnalyzer reporting that as a parse error? Shouldn't it behave as PHP does and play nice with it? I'm running PHP 5.3.15, Zend Code Analyzer 1.2.2 thnx, Christoph

« previous php.general (#319642) next »