Edit report at http://bugs.php.net/bug.php?id=54138&edit=1
ID: 54138 Updated by: rricha...@php.net Reported by: dmitrij at stepanov dot lv Summary: DOMNode::getLineNo() doesn't return line number higher than 65535 -Status: Open +Status: Bogus Type: Bug Package: XML Reader Operating System: Windows 7 PHP Version: 5.3.5 Block user comment: N Private report: N New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Known limitation of libxml2 Previous Comments: ------------------------------------------------------------------------ [2011-03-02 15:23:44] dmitrij at stepanov dot lv Description: ------------ DOMNode::getLineNo() doesn't return line number higher than 65535. I assume that unsigned short is used for file line enumeration either in XMLReader or DOMNode internals. Test script: --------------- Try reading with XMLReader an XML file that has more than 65535 lines. Then, when line nr. > 65535 is reached, call XMLReader::expand()->getLineNo(). Expected result: ---------------- Correct line number. Actual result: -------------- 65535 for lines, higher than 65525. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54138&edit=1