php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3634 arrays in list
Submitted: 2000-02-26 10:01 UTC Modified: 2000-03-02 18:42 UTC
From: faisal at nasim dot org Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Beta 4 Patch Level 1 OS: Windows, RH60
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: faisal at nasim dot org
New email:
PHP Version: OS:

 

 [2000-02-26 10:01 UTC] faisal at nasim dot org
Hi,

There is some implementation bug here!

list ( $z , $x[] , $x[] ) = array ( "blah" , 1 , 2 );
print "$z = $x[0] = $x[1]";


PHP 4b4 pl1:
blah = 2 = 1 (should be: blah = 1 = 2)


PHP 4b3:
blah = 1 = 2


Let me know when its stabbed to death! ;-)

Thank you!

Faisal
faisal@nasim.org

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-02 18:42 UTC] andi at cvs dot php dot net
The order of assignment with list() is undefined and should not be counted on.
 [2014-02-28 17:16 UTC] dsp@php.net
Automatic comment on behalf of cellog
Revision: http://git.php.net/?p=web/pecl.git;a=commit;h=2688946fde3462897b69bc431b7053c4d7a17c61
Log: Fix Bug #3634: still too many pear-specific restrictions on package valid
 [2024-08-01 15:53 UTC] git@php.net
Automatic comment on behalf of cmb69
Revision: https://github.com/php/doc-en/commit/cec5275f23d2db648df30a5702b378044431be97
Log: Fix #3634: Mismatch between array_walk(_recursive) return type in stub and documentation
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 05:01:33 2025 UTC