Bug #13155 Updated: PEAR HTML/Common.php Warning: Undefined offset

From: Date: Tue, 11 Sep 2001 02:24:43 +0000
Subject: Bug #13155 Updated: PEAR HTML/Common.php Warning: Undefined offset
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-65734@lists.php.net to get a copy of this message
ID: 13155
Updated by: cox
Reported By: rickey@lefteris.co.uk
Old Status: Analyzed
Status: Closed
Bug Type: Unknown/Other Function
Operating System: All I guess
PHP Version: 4.0CVS-2001-09-05
New Comment:

no feedback, so close it

Previous Comments:
------------------------------------------------------------------------

[2001-09-06 18:55:15] cox@php.net

I couldn't reproduce the problem. Could you provide a more complete test script?

------------------------------------------------------------------------

[2001-09-05 17:15:32] rickey@lefteris.co.uk

I hope this is the right place for this. Do let me know if it isnt.

Looks like _parseAttributes has a minor warning being generated when 
error_reporting (E_ALL);
is on and
$headerStyle = "bgcolor=blue nowrap";
and then
$table -> addRow($contents=$header_row, $headerStyle, 'TH');

whilst using HTML/Table.php from PEAR.

This diff corrects the problem, but I'm sure the author would produce a better solution:

121a122,124
>                     if (! isset ($regs[7][$valCounter])) {
>                         $regs[7][$valCounter] = 0;
>                     }

Rickey.



------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=13155&edit=1



Thread (3 messages)

« previous php.dev (#65734) next »