#34536 [NoF->Opn]: ini_get('register_globals') does not return correct value

From: Date: Fri, 30 Sep 2005 19:55:26 +0000
Subject: #34536 [NoF->Opn]: ini_get('register_globals') does not return correct value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85826@lists.php.net to get a copy of this message
 ID:               34536
 User updated by:  leoli at optonline dot net
 Reported By:      leoli at optonline dot net
-Status:           No Feedback
+Status:           Open
 Bug Type:         PHP options/info functions
 Operating System: Windows XP
 PHP Version:      5.0.5
 New Comment:

register_globals has been defined twice in the php.ini
I have entered an extra register_globals statement by mistake.
I have removed it from the php.ini. I got the expected result now.

Thanks.


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

[2005-09-24 01:00:04] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

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

[2005-09-17 00:42:31] tony2001@php.net

Try this:
php.exe -n -d register_globals=1 -r
'var_dump(ini_get("register_globals"));'
or 
php -n -d register_globals=1 -r <path to your script>

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

[2005-09-17 00:36:17] leoli at optonline dot net

I used php5.0-win32-latest.zip to reinstall PHP5

I used the follow code

<?php
/*
Our php.ini contains the following settings:

register_globals = On
engine = On
display_errors = On
y2k_compliance = On

*/

var_dump(ini_get('register_globals'));
var_dump(ini_get('engine'));
var_dump(ini_get('display_errors'));
var_dump(ini_get('y2k_compliance'));

?>

result:
string(0) "" string(0) "" string(1) "1" string(1) "1" 

The return values for
display_errors and y2k_compliance
are correct

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

[2005-09-16 21:36:40] tony2001@php.net

Also, please use var_dump(ini_get("register_globals")); instead of
echo.

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

[2005-09-16 21:35:50] tony2001@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip

Can't reproduce.

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

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/34536

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


Thread (7 messages)

« previous php.bugs (#85826) next »