Unknown error

From: Date: Sun, 31 Oct 2004 10:02:47 +0000
Subject: Unknown error
Groups: php.internals 
Request: Send a blank email to internals+get-13644@lists.php.net to get a copy of this message
Some of us have been playing around with static and have come up with this.. not my code</disclaimer> I am curious as to why this errors. What is happening internally. My thoughts were that is was a scope issue. <?php // Define a class with a nice juicy static variable class bob { public static $type = 'safd'; } // Lets chuck the name of the class into a variable... $foo = 'bob'; // Just to show it all works lets do it manualllllly echo bob::$type; // This is the line with the well-wicked parse error on the double colon echo $foo::$type; ?> Kind regards Kevin --------- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote."

« previous php.internals (#13644) next »