ID:               36552
 Updated by:       [EMAIL PROTECTED]
-Summary:          Setting multiple variables to "" with list results in
                   " Invalid opcode 98/1/1"
 Reported By:      stitched at mindspring dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Reproducible crash
 Operating System: Windows 2000
 PHP Version:      5.1.2
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

php.net/list: "Note:  list() only works on numerical arrays and assumes
the numerical indices start at 0."

use $var1 = $var2 = "";



Previous Comments:
------------------------------------------------------------------------

[2006-02-27 22:11:27] stitched at mindspring dot com

Description:
------------
Setting multiple variables to an empty string "" using list results in
the error below and PHP terminates: 

Fatal error: Invalid opcode 98/1/1. in phpfail.php on line 1

I tested with the latest build available for Windows which is PHP
5.1.3-dev (cli) (built: Feb 20 2006 00:29:25).  phpinfo reports that
the build command was:

cscript /nologo configure.js "--enable-snapshot-build"
"--with-gd=shared"

Reproduce code:
---------------
<?php list($Var1,$Var2) = ""; ?>

Expected result:
----------------
I expected both $Var1 and $Var2 to be set to an empty string.  Setting
them individually works as expected.

Actual result:
--------------
Fatal error: Invalid opcode 98/1/1. in phpfail.php on line 1


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36552&edit=1

Reply via email to