On Wed, Oct 31, 2012 at 3:42 PM, Christoph Boget
wrote:
> Consider the following code:
>
> class bob
> {
> static function factory()
> {
> echo 'In factory!';
> }
> }
>
> bob::factory();
> $var = 'bob';
> $var::factory();
> ?>
>
> When I run this, "In Factory!" is displayed twice,
Consider the following code:
';
}
}
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 followin
2 matches
Mail list logo