• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Duplicate  PHP 5.3 and set_magic_quotes_runtime

#1
Greetings,

If you install the product on PHP 5.3 and the error level is set to E_ALL, there is a warning that appears at the top regarding the deprecated set_magic_quotes_runtime.

Solution:

1. Use: E_ALL & ~E_DEPRECATED in your php.ini file
2. Open xenforo/library/XenForo/Application.php. Go to circa line 152.
Find
PHP:
if (function_exists('set_magic_quotes_runtime'))
{
    set_magic_quotes_runtime(false);
}
and change it to
PHP:
if (function_exists('set_magic_quotes_runtime'))
{
    if (floatval(phpversion()) > "5.2") {
        ini_set('magic_quotes_runtime', 0);
    } else {
        set_magic_quotes_runtime(false);
    }
}