php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31218 foreach() problem
Submitted: 2004-12-21 04:45 UTC Modified: 2004-12-21 05:41 UTC
From: ych at tcte dot com dot cn Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.3.10 OS: linux
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: ych at tcte dot com dot cn
New email:
PHP Version: OS:

 

 [2004-12-21 04:45 UTC] ych at tcte dot com dot cn
Description:
------------
while use phpmyadmin2.6.0-pl3 with php-4.3.10, phpmyadmin say "Illegal offset type in /phpmyadmin-2.6.0-pl3/libraries/grab_globals.lib.php on line 54
", their is no problem with 4.3.9 or 5.0.3.

grab_globals.lib.php:
53:    foreach ($server_vars as $current) {
54:        if (isset($_SERVER[$current])) {
55:            $$current = $_SERVER[$current];
56:        } elseif (!isset($$current)) {
57:            $$current = '';
58:        }
59:    }

I think maybe something wrong with foreach(), it has been changed in php-4.3.10(I see it in ChangeLog)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-21 05:41 UTC] magnus@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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 17 14:01:27 2024 UTC