From: ych at tcte dot com dot cn
Operating system: linux
PHP version: 4.3.10
PHP Bug Type: Reproducible crash
Bug description: foreach() problem
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)
--
Edit bug report at http://bugs.php.net/?id=31218&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31218&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=31218&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=31218&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31218&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31218&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31218&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31218&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31218&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31218&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31218&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=31218&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=31218&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31218&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31218&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31218&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31218&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31218&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31218&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31218&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31218&r=mysqlcfg