#50222 [Bgs]: can't disable magic_quotes_gpc support
| From: | philip@php.net | Date: | Thu, 19 Nov 2009 09:51:33 +0000 |
| Subject: | #50222 [Bgs]: can't disable magic_quotes_gpc support | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-144797@lists.php.net to get a copy of this message | ||
ID: 50222
Updated by: philip@php.net
Reported By: carlo dot mendola at gmail dot com
Status: Bogus
Bug Type: *Configuration Issues
Operating System: mac os x 10.6 snow leopard
PHP Version: 5.3.0
New Comment:
Basically this is saying that PHP is looking for /etc/php.ini but not
finding it.
And it's looking for php.ini not php.ini-default. So, rename it, then
restart the web server...
Previous Comments:
------------------------------------------------------------------------
[2009-11-19 09:34:02] carlo dot mendola at gmail dot com
1) the php.ini that were you referring to are the same php.ini.default
i
found in /etc or there is another one to modify?
2) my php.ini.default has already magic_quotes_gpc disabled as you can
see in my previous post.
magic_quotes_gpc = Off
what else am i supposed to do to disable magic_quotes_gpc?
3) my phpinfo() report tells (none) as you can see beneath
Configuration File (php.ini) Path /etc
Loaded Configuration File (none)
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)
Could it be related to my problem?
------------------------------------------------------------------------
[2009-11-19 08:36:56] jani@php.net
So turn it off in php.ini and you're done.
------------------------------------------------------------------------
[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