php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4103 each produces errant warnings
Submitted: 2000-04-11 10:46 UTC Modified: 2000-04-11 13:38 UTC
From: stas at zend dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (11/04/2000) OS: Solaris
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
30 + 33 = ?
Subscribe to this entry?

 
 [2000-04-11 10:46 UTC] stas at zend dot com
Script:

<?
$subvar_ar = array("AX_SES_ID" => "049129128921948493289312843");
while(list($key,$val) = each($subvar_ar)) {
  var_dump($key);
}

?>

outputs:

string(9) "AX_SES_ID"

Warning: Cannot use a scalar value as an array in t.php on line 3

Warning: Cannot use a scalar value as an array in t.php on line 3


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-11 13:38 UTC] andi at cvs dot php dot net
Fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 28 16:01:27 2024 UTC