Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_object_handlers.c /tests bug29015.phpt
| From: | Derick Rethans | Date: | Fri, 29 Apr 2005 09:33:53 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_object_handlers.c /tests bug29015.phpt | ||
| References: | 1 2 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-3621@lists.php.net to get a copy of this message | ||
On Fri, 29 Apr 2005, Andrey Hristov wrote:
> The name of the property includes characters invalid for a
> property (variable) name.
Not really - the following works fine too:
$var = new StdClass;
$a = "\1\2\3";
$var->{$a} = 'foo';
var_dump($var);
It's a feature ;-)
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org