Annotation of embedaddon/php/tests/lang/bug24499.phpt, revision 1.1
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: )
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>