Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Update Database  (Read 2528 times)

0 Members and 1 Guest are viewing this topic.

Niecher

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 191
Update Database
« 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
Code: [Select]
set_magic_quotes_runtime(0);

Replace
Code: [Select]
ini_set("magic_quotes_runtime", 0);

Regards
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Update Database
« Reply #1 on: August 28, 2013, 02:06:37 pm »

This 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
Logged

Niecher

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 191
Re: Update Database
« Reply #2 on: August 31, 2013, 11:04:37 am »

Thank you André.

Regards.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.