issues with ext/xml/tests/bug26614.phpt
| From: | Kamesh Jayachandran | Date: | Tue, 28 Sep 2004 12:10:26 +0000 |
| Subject: | issues with ext/xml/tests/bug26614.phpt | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-13046@lists.php.net to get a copy of this message | ||
Hi All,
I have a expat based php xml parser extension there also the
ext/xml/tests/bug26614.phpt fails the difference I could see is in byte
position,
For this snippet expected xml_get_current_byte_index is 45, 90 for start
and end of data tag respectively.
This would be correct if the lines are ended by "\n".
<?xml version="1.0" encoding="iso-8859-1" ?>
<data>
<![CDATA[
multi
line
CDATA
block
]]>
</data>
But I feel the lines are ended by "\r\n"
So I get 46(\r in the first line) and 98(8 \r preceding 8 lines).
How to differentiate between \r\n and \n?
I tried vi editor with ":se list" it was showing $ for both "\r\n" and
"\n".
With regards
Kamesh Jayachandran