#25724 [Ver->Csd]: register_long_arrays breaks superglobals

From: Date: Thu, 18 Mar 2004 14:00:33 +0000
Subject: #25724 [Ver->Csd]: register_long_arrays breaks superglobals
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56622@lists.php.net to get a copy of this message
 ID:               25724
 Updated by:       zeev@php.net
 Reported By:      kauer at face-online dot de
-Status:           Verified
+Status:           Closed
 Bug Type:         Zend Engine 2 problem
 Operating System: *
 PHP Version:      5CVS-2004-03-15
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2004-01-27 13:21:44] danielc at analysisandsolutions dot com

Bug 26206 -- http://bugs.php.net/bug.php?id=26206
-- has been marked as
a duplicate of this one.

------------------------------------------------------------------------

[2004-01-21 02:05:14] sniper@php.net

And both register_globals and register_long_arrays have to be off to
reproduce this!


------------------------------------------------------------------------

[2004-01-21 02:03:44] sniper@php.net

Only these superglobals are broken:

$_SERVER
$_ENV
$_REQUEST

All other work fine..



------------------------------------------------------------------------

[2003-11-28 21:20:42] sniper@php.net

Reproducable with this quick'n'dirty way too:

# sapi/cli/php -d'register_long_arrays=off' -r 'var_dump($_SERVER);'



------------------------------------------------------------------------

[2003-10-02 04:55:56] kauer at face-online dot de

Description:
------------
Using the binary from snaps.php.net, turning register_long_arrays off
in .htaccess will make $_SERVER unavailable.

Reproduce code:
---------------
File: .htaccess
php_flag register_long_arrays off

PHP:
var_dump($_SERVER);

Expected result:
----------------
I expect to see a variable dump of $_SERVER.

Actual result:
--------------
var_dump outputs NULL


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25724&edit=1


Thread (6 messages)

« previous php.bugs (#56622) next »