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] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
Also, please use var_dump(ini_get("register_globals")); instead of
echo.
------------------------------------------------------------------------
[2005-09-16 21:35:50] [EMAIL PROTECTED]
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