Bug #16531: XML_RSS produces some warnings

From: Date: Wed, 10 Apr 2002 14:46:23 +0000
Subject: Bug #16531: XML_RSS produces some warnings
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5305@lists.php.net to get a copy of this message
From: M.Hankus@ce3.pl Operating system: Linux PHP version: 4.1.2 PHP Bug Type: PEAR related Bug description: XML_RSS produces some warnings I've just installed XML/RSS module from PEAR. It produces some warnings because .= operator is used on uninitialised value. Solution below (DC:CREATOR, DC:DATE are some additional elements from Dublin Core http://dublincore.org/2001/08/14/dces which I use - which might also be added to a module) 206c206,208 < case "DESCRIPTION" : --- > case "DESCRIPTION" : > case "DC:CREATOR": > case "DC:DATE": 267,268c269,273 < { < $this->{$type}[$field] .= $value; --- > { > if(empty($this->{$type}) || empty($this->{$type}[$field])) > $this->{$type}[$field] = $value; > else > $this->{$type}[$field] .= $value; -- Edit bug report at http://bugs.php.net/?id=16531&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16531&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16531&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16531&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16531&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16531&r=support Expected behavior: http://bugs.php.net/fix.php?id=16531&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16531&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16531&r=submittedtwice

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