Anonymous | Login | Signup for a new account | 12-17-2024 08:37 PST |
Main | My View | View Issues | Change Log | Docs |
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 | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
32 total queries executed. 27 unique queries executed. |