# Unknown error

- Thread: https://externals.io/message/13644
- Original archive: https://news-web.php.net/php.internals/13644
- Started by Kevin Waterson on 2004-10-31T10:02:47+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #13644 — Kevin Waterson — 2004-10-31T10:02:47+00:00

URL: https://externals.io/message/13644#13644

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."
