Mantis - Quercus
Viewing Issue Advanced Details
2873 major always 08-27-08 01:43 08-28-08 19:38
nbzx  
nam  
normal  
closed 3.2.0  
fixed  
none    
none 3.2.1  
0002873: $this->x does not trigger __get and trigger __set twice
<?php
class Test {

    public function __get($name) {
        echo 'get ' . $name;
    }

    public function __set($name, $value){
        echo 'set ' . $name . '=' . $value . "
\n";
    }
    
    function test(){
        echo $this->x;
        $this->x = 'xxx';
    }
}


$test = new Test();
$test->test();
?>

output:
-----------------
set x=xxx
set x=xxx

Notes
(0003367)
nam   
08-28-08 19:38   
php/09kj
php/39kj