ID:               37341
 Updated by:       [EMAIL PROTECTED]
 Reported By:      phpbugs at thequod dot de
-Status:           Assigned
+Status:           Closed
 Bug Type:         CGI related
 Operating System: Ubuntu Linux
 PHP Version:      5CVS-2006-05-06 (CVS)
 Assigned To:      dmitry
 New Comment:

The bug occured with the following php.ini

register_globals=0
register_long_arrays=0
auto_globals_jit=1
register_argc_argv=0
variables_order="GPCS"

Fixed in CVS HEAD, PHP_5_2 and PHP_5_1.



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

[2006-05-18 17:01:10] phpbugs at thequod dot de

Changed category. Also happens with 5.2-CVS btw.

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

[2006-05-18 16:58:20] phpbugs at thequod dot de

I just wanted to write a .phpt test case for it and 
recognized, that it only happens when using

FastCgiServer /XXX/php5-fcgi-starter -user XXX -group 
XXX -pass-header HTTP_AUTHORIZATION -flush -idle-timeout 
60

It does NOT happen, if the fcgi binary is running 
in "dynamic mode"..

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

[2006-05-10 22:18:21] phpbugs at thequod dot de

changed summary.. sorry.

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

[2006-05-10 22:17:14] phpbugs at thequod dot de

PHP 5.1.5-dev (cgi-fcgi) (built: May  6 2006 22:18:37)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend 
Technologies

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

[2006-05-10 22:16:28] phpbugs at thequod dot de

To reproduce:
--- SERVER.php ---
<?php

# If $_SERVER does not get accessed in this script, it is 
nearly empty in the include:
#echo 'Count($_SERVER): '.count($_SERVER)."\n";

require_once('./SERVER.inc.php');

# "Accessing" $_ENV here makes $_SERVER empty in the 
include:
$foo = empty($_ENV);

?>


--- SERVER.inc.php ---
<?php

# This will be 2, if $_ENV gets accessed in the main 
script, but not $_SERVER!
echo 'Count($_SERVER) (Include): '.count($_SERVER)."\n";

?>

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/37341

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

Reply via email to