On 11/29/2011 05:22 PM, de...@lucato.it wrote: > Hi Rasmus, > > I already tested a similar example (see > http://codepad.viper-7.com/tNkTTX) but I'm getting
Sorry, pasting something into codepad doesn't qualify as testing. You have no idea how and when they built the 5.4 they are running. Until the first release, 5.4 is a moving target. And everyone who posts to internals are expected to be able to download and install 5.4 on their own. But to answer your question, yes, that syntax will work fine. It is right out of the UPGRADING file at: http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/UPGRADING?view=markup which says: - Class member access on instantiation: (new foo)->method() (new foo)->property (new foo)[0] -Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php