[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.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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