#33318 [Asn->Csd]: throw 1; results in Invalid opcode 108/1/8
| From: | dmitry@php.net | Date: | Thu, 16 Jun 2005 14:46:17 +0000 |
| Subject: | #33318 [Asn->Csd]: throw 1; results in Invalid opcode 108/1/8 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80453@lists.php.net to get a copy of this message | ||
ID: 33318
Updated by: dmitry@php.net
Reported By: pornel at despammed dot com
-Status: Assigned
+Status: Closed
Bug Type: Zend Engine 2 problem
Operating System: *
PHP Version: 5CVS-2005-06-16
Assigned To: dmitry
New Comment:
Fixed in CVS HEAD.
Previous Comments:
------------------------------------------------------------------------
[2005-06-16 15:33:47] sniper@php.net
Dmitry, please check this out. (I can reproduce with latest CVS)
------------------------------------------------------------------------
[2005-06-16 14:43:54] pornel at despammed dot com
<?php
throw 1;
?>
results in:
Fatal error: Invalid opcode 108/1/8. in c:\www\test.php5 on line 2
using PHP Version 5.1.0-dev Build Date Jun 15 2005 04:17:08 installed
on Win32 Apache/1.3.33 as CGI.
------------------------------------------------------------------------
[2005-06-13 10:32:15] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
I can not reproduce (the "script" you gave isn't really complete, is
it?)
------------------------------------------------------------------------
[2005-06-12 22:45:31] pornel at despammed dot com
Description:
------------
throw NULL; throw 1; and probably all non-object throws result in
"Invalid Opcode" errors.
if PHP isn't supposed to allow throwing of scalar values, error should
be more precise.
Reproduce code:
---------------
function ERR() {throw 'x';}
Expected result:
----------------
C++-like throwing of anything or parse error.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33318&edit=1