Return to bug24499.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang |
1.1 ! misho 1: --TEST-- ! 2: Bug #24499 (bogus handling of a public property as a private one) ! 3: --FILE-- ! 4: <?php ! 5: class Id { ! 6: private $id="priv"; ! 7: ! 8: public function tester($obj) ! 9: { ! 10: $obj->id = "bar"; ! 11: } ! 12: } ! 13: ! 14: $id = new Id(); ! 15: @$obj->foo = "bar"; ! 16: $id->tester($obj); ! 17: print_r($obj); ! 18: ?> ! 19: --EXPECT-- ! 20: stdClass Object ! 21: ( ! 22: [foo] => bar ! 23: [id] => bar ! 24: )