Jordi Boggiano wrote:
On 20.04.2010 12:41, Derick Rethans wrote:
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.
You have a point, it looks quite useless. But of course, I am sure
somebody has used this :)
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.
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.
Cheers,
Jordi
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php