--TEST--
Bug #34893 (PHP5.1 overloading, Cannot access private property)
--FILE--
<?php
class {
    private 
$p;
    function 
__get($name){
        return 
$this->$name;
    }
    function 
__set($name$value) {
        
$this->$name $value;
    }
}
class 
{
    private 
$t;
    function 
__get($name){
        return 
$this->$name;
    }
    function 
__set($name$value) {
        
$this->$name $value;
    }
}
$a = new A;
$b = new B;
$a->$b;
$b->"foo";

echo 
$a->p->t;
$a->p->"bar";
echo 
$a->p->t;
?>
--EXPECT--
foobar