Re: [RFC] Performance improvements
| From: | Dmitry Stogov | Date: | Tue, 20 Apr 2010 11:29:21 +0000 |
| Subject: | Re: [RFC] Performance improvements | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48021@lists.php.net to get a copy of this message | ||
Jordi Boggiano wrote:
On 20.04.2010 12:41, Derick Rethans wrote:Of course $ sapi/cli/php -n -r 'try {} catch (self $e) {}' Fatal error: Bad class name in the catch statement in Command line code on line 1 Thanks. Dmitry.FWIW, Google Code Search returns no such thing as far as I could see, it obviously doesn't mean it doesn't exist, but if it triggers a parse error or something clear enough to the eventual unlucky guy that did use it, I guess it might be an acceptable BC break.You have a point, it looks quite useless. But of course, I am sure somebody has used this :)You're writing that the ZEND_CATCH opcode has to be used with a constant class name, so how would "catch ( self $e )" be represented in op-codes now?I dropped such possibility. Does someone use it? For me it looks useless. If it's really necessary I can try not to drop it.
Cheers, Jordi