Something wrong with php magic_quotes_gpc

Valintinr

Member
Apr 19, 2012
8
0
51
cPanel Access Level
Root Administrator
Hello,
got a little issue with php variable magic_quotes_gpc
Client created php.ini in site root with next variables

"
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
"

but not working, joomla saying that magic_quotes_gpc is on.
Also created test page with

"
<?php

$str = "Is your name O'reilly?";
echo addslashes($str);

?>
"

and here also magic_quotes_gpc is on.
After modifying /usr/local/lib/php.ini and disabling there magic_quotes_gpc joomla is working but on test page still like magic_quotes_gpc is on (strange, right?)
I dont know what is wrong and why it happening.

PHP 5.3.21 (cli) (built: Feb 8 2013 11:15:20)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd., and
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies

Server version: Apache/2.2.23 (Unix)

WHM 11.38.2 (build 2)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

Magic Quotes are deprecated as of PHP 5.3 and removed as of PHP 5.4. I recommend disabling magic quotes completely on your system.

Thank you.