From: Operating system: Windows 7 PHP version: 5.3.5 Package: XML Reader Bug Type: Bug Bug description:DOMNode::getLineNo() doesn't return line number higher than 65535
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 bug report at http://bugs.php.net/bug.php?id=54138&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54138&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54138&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54138&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54138&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54138&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54138&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54138&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54138&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54138&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54138&r=support Expected behavior: http://bugs.php.net/fix.php?id=54138&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54138&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54138&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54138&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54138&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54138&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54138&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54138&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54138&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54138&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54138&r=mysqlcfg