|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-08-09 22:39 UTC] spam2 at rhsoft dot net
Description:
------------
[10-Aug-2007 00:30:56] PHP Fatal error: Call to undefined function get_magic_quotes_gpc() in /mnt/data/www/sql.rhsoft.net/libraries/common.lib.php on line 2606
The function "get_magic_quotes_gpc()" should available in PHP6 and return always false, so you dont break applications that check the setting and make a "stripslashes" if it is on.
Reproduce code:
---------------
if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc())
{
@$akt_temp_str_name = stripslashes(@$akt_temp_str_name);
}
Expected result:
----------------
if(get_magic_quotes_gpc())
{
@$akt_temp_str_name = stripslashes(@$akt_temp_str_name);
}
should work also
Actual result:
--------------
A fatal error
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 08:00:01 2025 UTC |
Hello, The behavior of get_magic_quotes_gpc has changed. Check the NEWS file: "Changed get_magic_quotes_gpc(), get_magic_quotes_runtime to always return false and set_magic_quotes_runtime() to raise an E_CORE_ERROR."