another issue to solve for PHP5
| From: | Wez Furlong | Date: | Wed, 24 Dec 2003 15:13:14 +0000 |
| Subject: | another issue to solve for PHP5 | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-6713@lists.php.net to get a copy of this message | ||
We still need to solve the delayed triggering of exceptions
thrown from C extensions or overloaded object handlers:
$obj->foo()->bar();
^
An exception thrown in foo() will not "detonate" until
the end of the statement (the semicolon).
What happens in this case is that $obj->foo() evalutates
to null and then engine will then E_ERROR out when trying
to call null->bar().
--Wez.