diff --git a/ChangeLog b/ChangeLog index 943b79212..e63622207 100644 --- a/ChangeLog +++ b/ChangeLog @@ -50,6 +50,8 @@ danbarry 2.11.6.0 (not yet released) - bug #1903724 [interface] Displaying of very large queries in error message +- bug #1905711 [compatibility] Functions deprecated in PHP 5.3: is_a() and + get_magic_quotes_gpc(), thanks to Dmitry N. Shilnikov - yrtimd 2.11.5.0 (2008-03-01) - bug #1862661 [GUI] Warn about rename deleting database diff --git a/libraries/common.inc.php b/libraries/common.inc.php index 872eb421f..407c374b3 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -231,7 +231,8 @@ if (isset($_POST['usesubform'])) { // end check if a subform is submitted // remove quotes added by php -if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) { +// (@ before get_magic_quotes_gpc() because it's deprecated in PHP 5.3) +if (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc()) { PMA_arrayWalkRecursive($_GET, 'stripslashes', true); PMA_arrayWalkRecursive($_POST, 'stripslashes', true); PMA_arrayWalkRecursive($_COOKIE, 'stripslashes', true);