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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

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: Sat Apr 27 14:01:30 2024 UTC