PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_Table_Matrix » Bug #3382

Instantiating a new filler without $options generates a warning

Details

Submitted2005-02-04 21:08 UTC
Fromcmoehrke at netviser dot de
Assignedieure
StatusClosed
PackageHTML_Table_Matrix
PHP Version5.0.3
OSLinux
Roadmaps(Not assigned)

Comments

[2005-02-04 21:08 UTC] cmoehrke at netviser dot de

Description:
------------
When instantiating a new object without using the optional Array $options Matrix/Filler results in a warning in Line 95. $options is initialized with null and then passed to array_merge() without checking if it's an array.

Reproduce code:
---------------
use the enclosed example

Expected result:
----------------
A proper table

Actual result:
--------------

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /usr/local/php/pear/HTML/Table/Matrix/Filler.php on line 95