Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    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)
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Valintinr

    Valintinr Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice