Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003253 [Quercus] major always 01-14-09 11:18 01-15-09 20:37
Reporter haplo View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0003253: get_object_vars respects IteratorAggregate but should not
Description class A implements IteratorAggregate {

    private $data = array("one", "two", "three");

    private $foo= "bar";

    public function getIterator(){
        return new ArrayIterator($this->data);
    }

    public function getVars(){
        return get_object_vars($this);
    }
}

$a = new A;

foreach($a as $key => $value){
    echo "$key => $value
";
}

$vars = $a->getVars();
foreach($vars as $key => $value){
    echo "$key => $value
";
}

Result apache:
0 => one
1 => two
2 => three
data => Array
foo => bar

Result quercus:
0 => one
1 => two
2 => three
0 => one
1 => two
2 => three
Additional Information
Attached Files

- Relationships

- Notes
(0003743)
ferg
01-15-09 20:37

php/4as7
 

- Issue History
Date Modified Username Field Change
01-14-09 11:18 haplo New Issue
01-15-09 20:37 ferg Note Added: 0003743
01-15-09 20:37 ferg Assigned To  => ferg
01-15-09 20:37 ferg Status new => closed
01-15-09 20:37 ferg Resolution open => fixed
01-15-09 20:37 ferg Fixed in Version  => 4.0.0
01-15-09 20:37 ferg Description Updated
06-18-09 08:03 waltercruz Issue Monitored: waltercruz


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