Consider the following code:

class  bob
  static  function  factory()
    echo  'In factory!<br>';

$var  =  'bob';

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:


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


Reply via email to