summaryrefslogtreecommitdiff
path: root/tests/lang/bug24499.phpt
blob: 6ce56dbad732891176d3e4467d2854de7cc7e783 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--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
)