From: Anatol Belski Date: Fri, 21 Aug 2015 09:47:00 +0000 (+0200) Subject: add test for bug 70309 X-Git-Tag: php-7.0.0RC2~2^2~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13044447ebb5a86fa776eaf7625fe428064322b2;p=php add test for bug 70309 --- diff --git a/ext/xmlreader/tests/bug70309.phpt b/ext/xmlreader/tests/bug70309.phpt new file mode 100644 index 0000000000..c08f879347 --- /dev/null +++ b/ext/xmlreader/tests/bug70309.phpt @@ -0,0 +1,42 @@ +--TEST-- +XMLReader: Bug #70309 XmlReader read generates extra output +--SKIPIF-- + + +--FILE-- +xml(' + +Test Chapter + +This is a paragraph in the test chapter. It is unremarkable in +every regard. This is a paragraph in the test chapter. It is +unremarkable in every regard. This is a paragraph in the test +chapter. It is unremarkable in every regard. + + +This paragraph contains +some emphasized text +1and a superscript +and a subscript. + + +This is a paragraph in the test chapter. It is unremarkable in +every regard. This is a paragraph in the test chapter. It is +unremarkable in every regard. This is a paragraph in the test +chapter. It is unremarkable in every regard. + +'); + +$doc->setRelaxNGSchema('http://docs.oasis-open.org/docbook/rng/5.0/docbook.rng'); + +while (@$doc->read() !== false); +?> +===DONE=== +--EXPECTF-- +===DONE===