Bug #9328 [NEW]: assigned by reference error in XML_RSS parse
| From: | mmclaughlin at newtier dot com | Date: | Mon, 13 Nov 2006 20:40:16 +0000 |
| Subject: | Bug #9328 [NEW]: assigned by reference error in XML_RSS parse | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8794@lists.php.net to get a copy of this message | ||
From: mmclaughlin at newtier dot com
Operating system: FreeBSD
Package version:
PHP version: 4.4.4
Package: Documentation
Bug Type: Bug
Bug description: assigned by reference error in XML_RSS parse
Description:
------------
I wrote a script to gather an external RSS feed that I could use to show
the user and have them select the articles of their choosing. If a RSS
feed is used that does not exist I get a MESSAGE: Only variables should be
assigned by reference.
Test script:
---------------
$url = 'www.rssfeednotexist.com';
$rss =& new XML_RSS($url);
$error = $rss->parse();
Expected result:
----------------
Return an error back to my script which I could handle and display a
message.
Actual result:
--------------
MESSAGE: Only variables should be assigned by reference
TYPE: Notice
FILE:
/usr/local/www/data/mmclaughlin/flexreg/trunk/lib/pear/XML/Parser.php
LINE: 479
DEBUG INFO:
474 }
475 }
476 // otherwise, $this->fp must be a string
477 } else {
478 if (!$this->_parseString($this->fp, true)) {
479 $error = &$this->raiseError();
480 $this->free();
481 return $error;
482 }
483 }
484 $this->free();
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=9328&edit=1
--