Home » HTML » HTML_Table » Bug #10140
Static / Non-Static calls
Details
| Submitted | 2007-02-20 22:08 UTC |
|---|---|
| From | geoff at osbaldestin dot net |
| Assigned | wiesemann |
| Status | Bogus |
| Package | HTML_Table |
| PHP Version | 5.2.0 |
| OS | openSuse 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();