-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/src/php/tests/lang/
File Upload :
Current File : //usr/src/php/tests/lang/bug24499.phpt

--TEST--
Bug #24499 (bogus handling of a public property as a private one)
--FILE--
<?php
class Id {
        private $id="priv";

        public function tester($obj)
        {
	        	$obj->id = "bar";
        }
}

$id = new Id();
@$obj->foo = "bar";
$id->tester($obj);
print_r($obj);
?>
--EXPECT--
stdClass Object
(
    [foo] => bar
    [id] => bar
)

Copyright © 2017 || Recoded By Mr.Bumblebee