php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36669 php 5 foreach() bug
Submitted: 2006-03-09 14:38 UTC Modified: 2006-03-09 14:49 UTC
From: peterpub1 at bivol dot net Assigned:
Status: Not a bug Package: Variables related
PHP Version: 5.1.2 OS: CENT OS
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: peterpub1 at bivol dot net
New email:
PHP Version: OS:

 

 [2006-03-09 14:38 UTC] peterpub1 at bivol dot net
Description:
------------
OS: CENT OS
PHP VERSION: 5.05
Zend Optimizer: 2.6.2


This line:

	foreach($GLOBALS as $key => $val){
.....
		}

When this piece of code is optimized/compiled  with Zend produces this error:

"Warning: Invalid argument supplied for foreach() in... "

Not optimized works without any problems ?

another bug like php 4.3.10 ?

Reproduce code:
---------------
foreach($GLOBALS as $key => $val){
.....
		}

Expected result:
----------------
see values

Actual result:
--------------
"Warning: Invalid argument supplied for foreach() in... "

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-09 14:49 UTC] tony2001@php.net
Do not file bugs when you have Zend extensions (zend_extension=)
loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache,
APC, Xdebug and ionCube loader.  These extensions often modify engine
behavior which is not related to PHP itself.

Not PHP problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 14 12:01:27 2024 UTC