[phplib] Bugs in table.inc ? From: Forrest J Cavalier III (forrest <email protected>)
Date: 06/04/01

I am using a new tool for PHP code auditing.

I found three items while auditing table.inc
of 7.2.b.

----------------------------------------------
function show_table_page_rows()

uses $key,$val, but does not set them:
      $this->table_row($row, $key, $val, $class);

(This may be serious, I don't know)

----------------------------------------------
function show_table_heading_cells()
has the line:
   $cell = 0;

which I think that should be $col = 0; (or
the later line in that function should have
$cell++)

Since table_heading_cell() doesn't use the first
argument, it seems like there is no observable
defect.

----------------------------------------------
function table_heading_cell()

sets $found, but never uses it.

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>