File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang / bug24499.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 8 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

    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>