|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-02-24 15:09 UTC] iliaa@php.net
[2007-02-24 15:17 UTC] black at scene-si dot org
[2007-02-24 16:11 UTC] sean@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 23:00:01 2025 UTC |
Description: ------------ list() overwriting variable, unexpected result (different from php4). Reproduce code: --------------- $v = array("00","-- Day --"); list($k,$v) = $v; var_dump(array($k,$v)); Expected result: ---------------- Var dump should return: array(2) { [0]=> string(2) "00" [1]=> string(11) "-- Day -- " } Actual result: -------------- Var dump returns: array(2) { [0]=> string(1) "-" [1]=> string(11) "-- Day -- " }