From: tschmieder at bitworks dot de
Operating system: Debian 4.0
PHP version: 5.2.1
PHP Bug Type: Unknown/Other Function
Bug description: $GLOBALS incomplete
Description:
------------
VERSION is 5.2.0-8etch1 distributed with debian 4.0!
After switching in php.ini to
register_long_arrays = off
not still the HTTP_*_VARS vanished, but also the $_SERVER disappeared
Reproduce code:
---------------
switch off in ini register_long_arrays
Use either
<?php ### get_globals.php ###
echo "<pre>\n";
print_r($GLOBALS);
echo "<pre>\n";
?>
or
<?php ### get_globals.php ###
echo "<pre>\n";
print_r($GLOBALS);
print_r($_SERVER);
echo "<pre>\n";
?>
The different behavior seams mystical.
Expected result:
----------------
please try yourself
Actual result:
--------------
please try yourself
--
Edit bug report at http://bugs.php.net/?id=41123&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=41123&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=41123&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=41123&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41123&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=41123&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41123&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41123&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41123&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41123&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41123&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=41123&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=41123&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41123&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41123&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41123&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41123&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41123&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41123&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41123&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41123&r=mysqlcfg