Bug #16531 Updated: XML_RSS produces some warnings
| From: | mj@php.net | Date: | Thu, 11 Apr 2002 05:35:22 +0000 |
| Subject: | Bug #16531 Updated: XML_RSS produces some warnings | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5332@lists.php.net to get a copy of this message | ||
ID: 16531
Updated by: mj@php.net
Reported By: M.Hankus@ce3.pl
-Status: Open
+Status: Closed
Bug Type: PEAR related
Operating System: Linux
PHP Version: 4.1.2
New Comment:
I commited your patch regarding the warning to CVS. Right now I'll not
add the Dublin Core tags, since I'm not familiar enough with it - but
chances are good that I'll add them one fine day.
Previous Comments:
------------------------------------------------------------------------
[2002-04-10 10:46:22] M.Hankus@ce3.pl
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 this bug report at http://bugs.php.net/?id=16531&edit=1