PEAR is archived and read-only

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

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"] == ''))