Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add test for Bug #9328

git-svn-id: https://svn.php.net/repository/pear/packages/XML_Parser/trunk@266396 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit af2fb57ae36ef08f24b1ffa4dd2057def9591b47 1 parent b1092ba
Chuck Burgess authored
Showing with 16 additions and 0 deletions.
  1. +1 −0  package.xml
  2. +1 −0  package2.xml
  3. +14 −0 tests/bug-9328.phpt
View
1  package.xml
@@ -68,6 +68,7 @@ Furthermore its now possible to split the parser from the handler object, so you
<file role="test" name="003.phpt"/>
<file role="test" name="004.phpt"/>
<file role="test" name="005.phpt"/>
+ <file role="test" name="bug-9328.phpt"/>
<file role="test" name="test2.xml"/>
<file role="test" name="test3.xml"/>
</dir> <!-- /tests -->
View
1  package2.xml
@@ -73,6 +73,7 @@ Furthermore its now possible to split the parser from the handler object, so you
<file baseinstalldir="XML" name="003.phpt" role="test" />
<file baseinstalldir="XML" name="004.phpt" role="test" />
<file baseinstalldir="XML" name="005.phpt" role="test" />
+ <file baseinstalldir="XML" name="bug-9328.phpt" role="test" />
<file baseinstalldir="XML" name="test2.xml" role="test" />
<file baseinstalldir="XML" name="test3.xml" role="test" />
</dir> <!-- /tests -->
View
14 tests/bug-9328.phpt
@@ -0,0 +1,14 @@
+--TEST--
+XML Parser: test for Bug #9328 "assigned by reference error in XML_RSS parse"
+--FILE--
+<?php
+require_once 'XML/RSS.php';
+
+$url = 'www.someverybogusurl.com';
+$rss =& new XML_RSS($url);
+
+$error = $rss->parse();
+echo $error->getMessage() . PHP_EOL;
+?>
+--EXPECT--
+XML_Parser: Invalid document end at XML input line 1:1
Please sign in to comment.
Something went wrong with that request. Please try again.