Paamayim Nekudotayim p0wnd!
Yeah I know, I am rancorous... :)
Back in 2002, I asked php-internals for support of $c = "classname"; $c::someMethod(). After having obviously bored a few people there, I was finally replied that it wouldn't be supported which I found was mean at the time (I changed my mind, but still...). Derick even made fun of my request in his PHP Loop back 2002. Well with PHP 5.3, now it's time for REVENGE!
Now I am wondering if the following still works in PHP 5.3:
It was pretty strange back then.
Back in 2002, I asked php-internals for support of $c = "classname"; $c::someMethod(). After having obviously bored a few people there, I was finally replied that it wouldn't be supported which I found was mean at the time (I changed my mind, but still...). Derick even made fun of my request in his PHP Loop back 2002. Well with PHP 5.3, now it's time for REVENGE!
Now I am wondering if the following still works in PHP 5.3:
Class foo {
function bar() {
echo $this->param;
}
}
Class MyObject {
var $param;
function MyObject($param) {
$this->param = $param;
foo::bar();
}
}
$obj = new MyObject('out of this');
--> prints : "out of this"
It was pretty strange back then.
Comments
And we'll have to ignore the fact that you're ignoring the warnings if you run this code nowadays...?
[note: I can't reply using firefox and you should check for some other errors too]
Add a comment
The Trackback URL to this comment is:
http://golgote.freeflux.net/blog/plugin=trackback(139).xml
No new comments allowed (anymore) on this post.

