php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13155 PEAR HTML/Common.php Warning: Undefined offset
Submitted: 2001-09-05 17:15 UTC Modified: 2001-09-10 22:24 UTC
From: rickey at lefteris dot co dot uk Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0CVS-2001-09-05 OS: All I guess
Private report: No CVE-ID: None
 [2001-09-05 17:15 UTC] rickey at lefteris dot co dot 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-06 18:55 UTC] cox@php.net
I couldn't reproduce the problem. Could you provide a more complete test script?
 [2001-09-10 22:24 UTC] cox@php.net
no feedback, so close it
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 17:01:29 2024 UTC