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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 13:01:30 2024 UTC