Yeah for BC sake, but if you define the function's as static explicitly it
won't work.
At 01:54 PM 6/21/2004 +0200, Ard Biesheuvel wrote:
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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php