ID:               27375
 Updated by:       [EMAIL PROTECTED]
 Reported By:      oliver at update dot ch
-Status:           Open
+Status:           Bogus
 Bug Type:         Apache2 related
 Operating System: Linux
 PHP Version:      4.3.3.
 New Comment:

If you had bothered searching the bug database first you would have
find couple of dozen similar reports. And also that this is most likely
FIXED in CVS. (get stable snapshot from http://snaps.php.net/ )




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

[2004-02-25 02:04:35] oliver at update dot ch

Sorry about that. I'm not the pro on stuff like this. 

But I try again:



Configuration:

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

'./configure' '--with-apxs2=/opt/httpd-2.0.47/bin/apxs' 

'--with-config-file-path=/etc/httpd2' '--prefix=/opt/

php-4.x' '--enable-versioning' '--with-gd' '--with-jpeg-

dir=/usr' '--with-xpm-dir=/usr' '--with-bz2' '--with-

freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-

debug=no' '--with-exec-dir=/opt/php-4.x/run' '--enable-

track-vars=yes' '--disable-cgi' '--enable-calendar' '--

with-ttf' '--with-imap' '--with-ft' '--with-xml' '--

with-mhash' '--with-mcrypt' '--with-bcmath' '--with-

snmp' '--enable-ucd-snmp-hack' '--enable-ucd-snmp-

compatibility' '--with-pdflib=/opt/pdflib-4.0' '--with-

zlib' '--enable-trans-sid' '--with-openssl' '--with-

wddx' '--with-crack' '--with-kerberos' '--with-gettext'



Reproduce code:

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

register_globals: "<?=ini_get('register_globals')?>"

$GLOBALS["DOCUMENT_ROOT"] = "<?

=$GLOBALS["DOCUMENT_ROOT"];?>

$DOCUMENT_ROOT: "<?=$DOCUMENT_ROOT?>"

$_SERVER["DOCUMENT_ROOT"]: "<?=$_SERVER[ 'DOCUMENT_ROOT' 

]?>"



Expected result:

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

register_globals: "1"

$GLOBALS["DOCUMENT_ROOT"] = "/home/www/

$DOCUMENT_ROOT: "/home/www/"

$_SERVER["DOCUMENT_ROOT"]: "/home/www/"



Result (tested on 02/24/04):

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

register_globals: "1"

$GLOBALS["DOCUMENT_ROOT"] = ""

$DOCUMENT_ROOT: ""

$_SERVER["DOCUMENT_ROOT"]: "/home/www/"



PHP-Version is 4.3.3.



The thing is, that I couldn't reproduce the result today 

(02/25). So I guess, you can really let vanish this 

report. Thanks for the help anyway.

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

[2004-02-24 16:57:50] [EMAIL PROTECTED]

Second try. (If I have to ask these same things for the 3rd time, this
bug report will vanish mysteriously..)



1. How did you configure Apache? (configure line used)

2. What MPM are you using with Apache?

3. What is register_globals set to WHEN this happens?

(put var_dump(ini_get("register_globals")); in the beginning of your
script, see bug #24253 what a nice short test script looks like)

4. Are you sure there aren't any .htaccess files or vhosts setting
register_globals to something else? Or setting any other php.ini
options? (using php_value, php_admin_value, php_flag or php_admin_flag
directives)

5. How was PHP configured into Apache? (as module or CGI binary??)



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

[2004-02-24 12:59:58] oliver at update dot ch

register_globals is always set on. register_globals is 

set to on in the php.ini file.



SERVER_SOFTWARE:

Apache/2.0.47 (Unix) mod_perl/1.99_09 Perl/v5.6.1 

mod_ssl/2.0.47 OpenSSL/0.9.6c DAV/2 FrontPain/5.0.0.0

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

[2004-02-24 12:03:10] [EMAIL PROTECTED]

When this happens, is register_globals on or off? 

Do you override it in some vhost ?

How do you do it? 



In other words: Not enough information..



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

[2004-02-24 07:30:00] oliver at update dot ch

Description:
------------
The Global Variable $GLOBALS["DOCUMENT_ROOT"] or $DOCUMENT_ROOT is
sometimes empty.

After a reload $DOCUMENT_ROOT mostly contains the expected value.

see also http://bugs.php.net/bug.php?id=25172



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


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

Reply via email to