ID: 47976
Updated by: [email protected]
Reported By: surkamp at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: PHP options/info functions
Operating System: Ubuntu Linux 8.10
PHP Version: 5.2.9
New Comment:
>From sources:
main.c: STD_PHP_INI_BOOLEAN("magic_quotes_gpc", "1",
PHP_INI_PERDIR|PHP_INI_SYSTEM, OnUpdateBool, magic_quotes_gpc,
php_core_globals, core_globals)
And there's nothing in manual that says it's PHP_INI_ALL..
Previous Comments:
------------------------------------------------------------------------
[2009-04-16 00:01:24] surkamp at gmail dot com
Description:
------------
Unable to disable magic_quotes_gpc with ini_set function
PHP manual says that this variable can be changed by PHP_INI_ALL
http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc
Reproduce code:
---------------
<?php
ini_set('magic_quotes_gpc', false);
echo ini_get('magic_quotes_gpc');
print $_GET['q'];
Expected result:
----------------
0
'
Actual result:
--------------
1
\'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47976&edit=1