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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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