Is the fact that the following code works intentional ?

class S {
        function func() {
                A::meth();
        }
}

class A {
        private $bar;

        function meth() {
                $this->bar="bar";
        }

        function func() {
                S::func();
                echo "$this->bar\n";

        }
}


$a = new A; $a->func();

... so A::$this is accessed through two static calls to different classes.

--
Ard

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



Reply via email to