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

Add a Patch

Pull Requests

Add a Pull Request

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: Mon Jun 24 12:01:31 2024 UTC