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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rickey at lefteris dot co dot uk
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 00:01:29 2025 UTC