The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Something wrong with php magic_quotes_gpc

Discussion in 'General Discussion' started by Valintinr, Aug 20, 2013.

  1. Valintinr

    Valintinr Member

    Joined:
    Apr 19, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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)
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. Valintinr

    Valintinr Member

    Joined:
    Apr 19, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Ah, ok.
    Thank you
     
Loading...

Share This Page