XML::Util skips 0 (zero) cData values

From: Date: Fri, 05 Sep 2003 08:32:53 +0000
Subject: XML::Util skips 0 (zero) cData values
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21097@lists.php.net to get a copy of this message
When a content value of (int) 0 is set, createTagFromArray creates an empty tag: <tag attr="test"/> instead of: <tag attr="test">0</tag> I would think this is undisireable behaviour, caused by this: line 313: if (!isset($tag["content"]) || empty($tag["content"])) { In my opinion it should be: if (!isset($tag["content"]) || $tag["content"] == '') { Any input on this? Thanks, - fabien

« previous php.pear.dev (#21097) next »