coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: Niecher on August 28, 2013, 01:46:00 PM

Title: Update Database
Post by: Niecher on August 28, 2013, 01:46:00 PM
In update.php line 33

Quote
Deprecated line 33: Function set_magic_quotes_runtime() is deprecated

Find

set_magic_quotes_runtime(0);


Replace

ini_set("magic_quotes_runtime", 0);


Regards
Title: Re: Update Database
Post by: Αndré on August 28, 2013, 02:06:37 PM
Quote from: http://www.php.net/manual/en/function.set-magic-quotes-runtime.phpThis function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

However, ini_set is no option as it's not available on all hosts and there's even a comment:
Code (http://www.php.net/manual/de/function.set-magic-quotes-runtime.php#109610) Select
Be aware that even using ini_set to set 'magic_quotes_runtime' will stop working in PHP 5.4.  See http://php.net/manual/en/info.configuration.php#ini.magic-quotes-runtime
Title: Re: Update Database
Post by: Niecher on August 31, 2013, 11:04:37 AM
Thank you André.

Regards.