[Solved]: Fix for upgrade to PHP 5.3 in debugger.inc [Solved]: Fix for upgrade to PHP 5.3 in debugger.inc
 

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

Main Menu

[Solved]: Fix for upgrade to PHP 5.3 in debugger.inc

Started by sdstern, November 27, 2009, 10:59:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sdstern

I'm getting many, many copies of this onscreen since installing PHP 5.3

Notice: Undefined offset: 8192 in /var/www/gallery/include/debugger.inc.php on line 112

Here's line 112
$this->report[$filename][] = $errortype[$errno]." line $linenum: ".$errmsg;

It appears that the value of $errno is 8192

PHP 5.3 adds two new numbers:
8192=> 'use of deprecated functions', 16384=>'use of deprecated user code'. These need to be added to the errortype array at the start of the file.

Nibbler

We fixed this months ago. Update your gallery.

sdstern