Welcome Guest, Not a member yet? Register   Sign In
Message: Function set_magic_quotes_runtime() is deprecated
#1

[eluser]cpp643[/eluser]
Can any one help me from getting out of below listed error?, i have set megic_quotes_runtme then also it will show this error


Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\ll\system\codeigniter\Common.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\ll\system\codeigniter\Common.php on line 136
A PHP Error was encountered

Severity: 8192

Message: Function set_magic_quotes_runtime() is deprecated

Filename: codeigniter/CodeIgniter.php

Line Number: 60
404 Page Not Found

The page you requested was not found.
#2

[eluser]InsiteFX[/eluser]
Code:
if (get_magic_quotes_gpc())
{
    function stripslashes_deep($value)
    {
        $value = is_array($value) ?  array_map('stripslashes_deep', $value)
                                  :  stripslashes($value);

        return $value;
    }

}

Enjoy
InsiteFX
#3

[eluser]cpp643[/eluser]
[quote author="InsiteFX" date="1254983097"]
Code:
if (get_magic_quotes_gpc())
{
    function stripslashes_deep($value)
    {
        $value = is_array($value) ?  array_map('stripslashes_deep', $value)
                                  :  stripslashes($value);

        return $value;
    }

}

Enjoy
InsiteFX[/quote]


Dear, it is not working
i have PHP 5.3 and Apache 2.2.11
i have use reference against the get_magic_quotes_gpc() function then also it won't work...
is their any older version of CI that will work properly in this new PHP version ??
#4

[eluser]Willy Wijaya[/eluser]
Dear All,

I have the same problem.. my PHP is 5.3..
Is there any solutions for this ?
#5

[eluser]Willy Wijaya[/eluser]
Hi, I have found the answer in this forum too..
Just do a replace for these files with codeIgniter 1.7.2
\system\codeigniter\Common.php
\system\codeigniter\CodeIgniter.php
\system\libraries\Loaders.php

Thanks.
#6

[eluser]cpp643[/eluser]
Thank you willy
#7

[eluser]Willy Wijaya[/eluser]
You're welcome, cpp643..
But, my suggestion is better you upgrade your CI version to 1.7.2..
maybe there is other lib or script that changed since last build version to 1.7.2..
#8

[eluser]zawaruddin[/eluser]
try to replace

set_magic_quotes_runtime(0);

with

ini_set(“magic_quotes_runtime”, 0);

then restart your web server application.,.,.




Theme © iAndrew 2016 - Forum software by © MyBB