#40591 [Asn->Csd]: list()="string"; gives invalid opcode
| From: | dmitry@php.net | Date: | Sun, 25 Feb 2007 16:15:31 +0000 |
| Subject: | #40591 [Asn->Csd]: list()="string"; gives invalid opcode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109493@lists.php.net to get a copy of this message | ||
ID: 40591
Updated by: dmitry@php.net
Reported By: mike@php.net
-Status: Assigned
+Status: Closed
Bug Type: Scripting Engine problem
PHP Version: 5CVS-2007-02-22 (snap)
Assigned To: dmitry
New Comment:
The bug is fixed in CVS HEAD and PHP_5_2.
But the behavoirs of the following scripts are still different:
1) list($a, $b) = "ab"; // $a = $b = NULL;
2) list($a, $b) = "a"."b"; // $a = $b = NULL;
3) $s = "ab"; list($a, $b) = $s; // $a = "a"; $b = "b";
4) list($a, $b) = foo(); // $a = "a"; $b = "b";
Previous Comments:
------------------------------------------------------------------------
[2007-02-22 15:13:32] mike@php.net
Description:
------------
.
Reproduce code:
---------------
list($a,$b,$c)="abc";
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40591&edit=1