1--TEST--
2Bug #26614 (CDATA sections skipped on line count)
3--EXTENSIONS--
4xml
5--SKIPIF--
6<?php
7require __DIR__ . '/libxml_expat_skipif.inc';
8skipif(want_expat: false);
9if (LIBXML_VERSION >= 21100) die('skip libxml2 test variant for version < 2.11');
10?>
11--FILE--
12<?php
13require __DIR__ . '/bug26614.inc';
14?>
15--EXPECTF--
16CDATA
17<DATA> at line 2, col %d (byte 9)
18</DATA> at line 9, col %d (byte 55)
19Comment
20<DATA> at line 2, col %d (byte 9)
21</DATA> at line 9, col %d (byte 55)
22Text
23<DATA> at line 2, col %d (byte 9)
24</DATA> at line 9, col %d (byte 55)
25