#50222 [Opn->Bgs]: can't disable magic_quotes_gpc support
ID: 50222
Updated by: jani@php.net
Reported By: carlo dot mendola at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: *Configuration Issues
Operating System: mac os x 10.6 snow leopard
PHP Version: 5.3.0
New Comment:
So turn it off in php.ini and you're done.
Previous Comments:
------------------------------------------------------------------------
[2009-11-18 23:21:53] carlo dot mendola at gmail dot com
Description:
------------
i got a problem with mysql_real_escape_string because of this
assignment:
$myvar=mysql_real_escape_string($_POST['key']);
the value in $_POST['key'] contains a string already escaped.
I think it might be due to magic_quotes_gcp settings.
the phpinfo() tells that magic_quotes_gpc is On for both master and
local value.
The php.ini.default has the following settings:
; magic_quotes_gpc
; Default Value: On
; Development Value: Off
; Production Value: Off
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50222&edit=1
Thread (5 messages)