diff options
Diffstat (limited to 'ext/libxml/tests/bug54138_1.phpt')
-rw-r--r-- | ext/libxml/tests/bug54138_1.phpt | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/ext/libxml/tests/bug54138_1.phpt b/ext/libxml/tests/bug54138_1.phpt deleted file mode 100644 index f0a8a04698..0000000000 --- a/ext/libxml/tests/bug54138_1.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -Bug #54138 - DOMNode::getLineNo() doesn't return line number higher than 65535 ---SKIPIF-- -<?php -if (!extension_loaded('dom')) die('skip dom extension not available'); -if (LIBXML_VERSION >= 20900) die('skip this test is for libxml < 2.9.0 only'); -?> ---FILE-- -<?php -define('LIBXML_BIGLINES', 1<<22); -$foos = str_repeat('<foo/>' . PHP_EOL, 65535); -$xml = <<<XML -<?xml version="1.0" encoding="UTF-8"?> -<root> -$foos -<bar/> -</root> -XML; -$dom = new DOMDocument(); -$dom->loadXML($xml, LIBXML_BIGLINES); -var_dump($dom->getElementsByTagName('bar')->item(0)->getLineNo()); -?> ---EXPECT-- -int(65535) |