#34536 [Opn->Fbk]: ini_get('register_globals') does not return correct value
ID: 34536
Updated by: tony2001@php.net
Reported By: leoli at optonline dot net
-Status: Open
+Status: Feedback
-Bug Type: Unknown/Other Function
+Bug Type: PHP options/info functions
Operating System: Windows XP
PHP Version: 5.0.5
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-09-16 21:31:37] leoli at optonline dot net
Description:
------------
ini_get('register_globals') always return empty string no matter what
value is set in php.ini.
ini_get() function returns all other values defined in php.ini
correctly.
Reproduce code:
---------------
/*
Our php.ini contains the following settings:
register_globals = On
*/
echo 'register_globals = ' . ini_get('register_globals') . "\n";
Expected result:
----------------
register_globals = 1
Actual result:
--------------
register_globals =
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34536&edit=1
Thread (7 messages)