Doc #68136 [NEW]: list intrinsic starting with the right-most parameter

From: Date: Thu, 02 Oct 2014 20:39:27 +0000
Subject: Doc #68136 [NEW]: list intrinsic starting with the right-most parameter
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11521@lists.php.net to get a copy of this message
From: rstoll at tutteli dot ch Operating system: PHP version: 5.6.0 Package: PHP Language Specification Bug Type: Documentation Problem Bug description:list intrinsic starting with the right-most parameter Description: ------------ see: https://github.com/php/php-langspec/blob/master/spec/10-expressions.md#list and: php.net/manual/en/function.list.php The manual states: Warning list() assigns the values starting with the right-most parameter. If you are using plain variables, you don't have to worry about this. But if you are using arrays with indices you usually expect the order of the indices in the array the same you wrote in the list() from left to right; which it isn't. It's assigned in the reverse order. Right now I cannot really grasp what this warning tries to explain but I can see that it is missing in the spec. Either the manual is wrong or the spec -- Edit bug report at https://bugs.php.net/bug.php?id=68136&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68136&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68136&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68136&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68136&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68136&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68136&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68136&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68136&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68136&r=support Expected behavior: https://bugs.php.net/fix.php?id=68136&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68136&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68136&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68136&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68136&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68136&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68136&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68136&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68136&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68136&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68136&r=mysqlcfg

« previous php.doc.bugs (#11521) next »