xref: /PHP-5.4/tests/lang/bug24499.phpt (revision 610c7fbe)
1--TEST--
2Bug #24499 (bogus handling of a public property as a private one)
3--FILE--
4<?php
5class 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);
17print_r($obj);
18?>
19--EXPECT--
20stdClass Object
21(
22    [foo] => bar
23    [id] => bar
24)
25