Re: Change to function call semantics in PHP 5.1?

From: Date: Tue, 21 Feb 2006 22:41:55 +0000
Subject: Re: Change to function call semantics in PHP 5.1?
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Mark Spruiell wrote:
In PHP 5.0.x, I can chain function calls like this: $obj->method()->anotherMethod(); In PHP 5.1.x, this code results in an error: parse error, unexpected T_OBJECT_OPERATOR in ... I've looked through the change log for 5.1 but didn't see anything relevant. Was this an intentional change?
What version did you try? It seems to still work fine with current CVS. Regards, -- Michael - <mike(@)php.net> http://dev.iworks.at/ext-http/http-functions.html.gz

Thread (4 messages)

« previous php.internals (#21976) next »