Bug #13884: Arrays does not work good in objects

From: Date: Wed, 31 Oct 2001 11:17:50 +0000
Subject: Bug #13884: Arrays does not work good in objects
Groups: php.dev 
Request: Send a blank email to php-dev+get-69410@lists.php.net to get a copy of this message
From: starky@udm.ru Operating system: Win98 PHP version: 4.0.5 PHP Bug Type: Class/Object related Bug description: Arrays does not work good in objects <? class test{ var $items; function test1(){ $this->$items['foo']='test'; } } $test=new test; $test->test1(); echo $test->$items['bar']; ?> last line will output "test" -- Edit bug report at: http://bugs.php.net/?id=13884&edit=1

« previous php.dev (#69410) next »