Problems with LSB
| From: | Sebastian Deutsch | Date: | Mon, 11 Feb 2008 02:40:14 +0000 |
| Subject: | Problems with LSB | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-35348@lists.php.net to get a copy of this message | ||
Hello,
i've written the following code using Etiennes LSB. But I'm facing some problems.
<?php
class A {
function foo() {
echo get_called_class();
}
}
class B extends A {
}
class C {
function moo() {
B::foo();
}
}
B::foo(); // echos "B" - good
$c = new C;
$c->moo(); // echos "C" - wtf?? should be B
?>
Is it a bug, or did I miss anything?
Sebastian Deutsch