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 » XML » XML_Util » Bug #23

Array To String conversion

Details

Submitted2003-09-18 17:41 UTC
Fromfrancois at flash-france dot com
Assignedschst
StatusClosed
PackageXML_Util
PHP Version4.3.2
OSredhat linux 7.2
Roadmaps(Not assigned)

Comments

[2003-09-18 17:41 UTC] francois at flash-france dot com

Description:
------------
it's not really a strong bug but a Notice that appears when use with E_ALL error reporting :

Notice: Array to string conversion in /usr/local/lib/php/XML/Util.php on line 314

if (!isset($tag["content"]) || (string)$tag["content"] == '')

i propose this fix to avoid this notice (line 314) :

if (!isset($tag["content"]) || (is_string($tag["content"]) && (string)$tag["content"] == ''))