Re: com php-src: Remove dead code from ZEND_THROW: Zend/zend_vm_def.h Zend/zend_vm_execute.h
| From: | Nikita Popov | Date: | Tue, 06 May 2014 18:35:35 +0000 |
| Subject: | Re: com php-src: Remove dead code from ZEND_THROW: Zend/zend_vm_def.h Zend/zend_vm_execute.h | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-78150@lists.php.net to get a copy of this message | ||
On Tue, May 6, 2014 at 8:22 PM, Dmitry Stogov <dmitry@zend.com> wrote:
> Are you sure it's dead?
>
> throw 5; - is a legal syntax
>
> Thanks. Dmitry.
>
If OP1 is IS_CONST it will throw an E_ERROR due to the condition in
https://github.com/php/php-src/blob/phpng/Zend/zend_vm_def.h#L2921.
So it
won't get to that code.
Nikita