# issues with ext/xml/tests/bug26614.phpt

- Thread: https://externals.io/message/13046
- Original archive: https://news-web.php.net/php.internals/13046
- Started by Kamesh Jayachandran on 2004-09-28T12:10:26+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #13046 — Kamesh Jayachandran — 2004-09-28T12:10:26+00:00

URL: https://externals.io/message/13046#13046

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
