Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002873 [Quercus] major always 08-27-08 01:43 08-28-08 19:38
Reporter nbzx View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 3.2.0
Summary 0002873: $this->x does not trigger __get and trigger __set twice
Description <?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
Additional Information
Attached Files

- Relationships

- Notes
(0003367)
nam
08-28-08 19:38

php/09kj
php/39kj
 

- Issue History
Date Modified Username Field Change
08-27-08 01:43 nbzx New Issue
08-28-08 19:38 nam Status new => assigned
08-28-08 19:38 nam Assigned To  => nam
08-28-08 19:38 nam Status assigned => closed
08-28-08 19:38 nam Note Added: 0003367
08-28-08 19:38 nam Resolution open => fixed
08-28-08 19:38 nam Fixed in Version  => 3.2.1


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker