diff options
Diffstat (limited to 'Zend/tests/bug34893.phpt')
-rwxr-xr-x | Zend/tests/bug34893.phpt | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/Zend/tests/bug34893.phpt b/Zend/tests/bug34893.phpt deleted file mode 100755 index bbe02358e9..0000000000 --- a/Zend/tests/bug34893.phpt +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -Bug #34893 (PHP5.1 overloading, Cannot access private property) ---FILE-- -<?php -class A { - private $p; - function __get($name){ - return $this->$name; - } - function __set($name, $value) { - $this->$name = $value; - } -} -class B { - private $t; - function __get($name){ - return $this->$name; - } - function __set($name, $value) { - $this->$name = $value; - } -} -$a = new A; -$b = new B; -$a->p = $b; -$b->t = "foo"; - -echo $a->p->t; -$a->p->t = "bar"; -echo $a->p->t; -?> ---EXPECT-- -foobar |