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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to