PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Table » Bug #10140

Static / Non-Static calls

Details

Submitted2007-02-20 22:08 UTC
Fromgeoff at osbaldestin dot net
Assignedwiesemann
StatusBogus
PackageHTML_Table
PHP Version5.2.0
OSopenSuse 10.2
Roadmaps(Not assigned)

Comments

[2007-02-20 22:08 UTC] geoff at osbaldestin dot net

Description:
------------
full php version (from PHP -v )
PHP 5.2.0 with Suhosin-Patch 0.9.6.1 (cli) (built: Nov 27
2006 22:20:02)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend
Technologies

When attempting to use the HMTL_Table with the code below
i was get returned the error:
In /usr/share/php5/PEAR/HTML/Table/Storage.php
line: 375
Non-static method PEAR::isError() should not be called
statically, assuming $this from incompatible context

The HMTL_Storage version is
CVS: $Id: Storage.php,v 1.11 2006/10/20 20:36:48 wiesemann
Exp $

Test script:
---------------
$attributes = array("width"=>"90%", "border"=>"1");
$table = new HTML_Table($attributes);
$table->setAutoGrow(true);
$contents = array("","ID", "Title", "Author", "");
while ($row = mysql_fetch_assoc($result)) {
.....
}
$table->display();