Bug #73517 [NEW]: LineNr reports max at 65535 ... stays 65535
| From: | johan at cti-computers dot be | Date: | Mon, 14 Nov 2016 19:31:52 +0000 |
| Subject: | Bug #73517 [NEW]: LineNr reports max at 65535 ... stays 65535 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-205370@lists.php.net to get a copy of this message | ||
From: johan at cti-computers dot be
Operating system: OS X El Capitan 10.11.6
PHP version: Next Minor Version
Package: Variables related
Bug Type: Bug
Bug description:LineNr reports max at 65535 ... stays 65535
Description:
------------
---
From manual page: http://www.php.net/function.libxml-get-errors
---
When validating (xsd-schema) big XML ( > 10.000.000 lines )
> If errors are found in the XML on linenumbers above 65535,
the value for the next linenumbers stays at maximum value of 65535.
* using the function : libxml_display_error($error)
* and reading the output for : $error->line;
PHP version 5.6.24
LIBXML Running on MAC ( with XAMPP 5-6-24.1 )
libXML Compiled Version 2.8.0
libXML Loaded Version 20800
libXML streams enabled
Test script:
---------------
function libxml_display_errors() {
$errors = libxml_get_errors();
foreach ($errors as $error) {
libxml_display_error($error);
}
libxml_clear_errors();
}
function libxml_display_error($error)
{
$_SESSION['rep_errcode'] = $error->code;
$_SESSION['bme_linenr'] = "L ".(string)$error->line;
...
}
***************************************************
BUG = Linenr has max value 65535.
All lines with errors are in the report, with correct linenr if this is
< 65536.
The other outputs are OK. No problems.
OK = $error->message;
OK = $error->code;
Expected result:
----------------
That the output for the linenumber doesn't stop at 65535.
--
Edit bug report at https://bugs.php.net/bug.php?id=73517&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73517&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73517&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73517&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73517&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73517&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73517&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73517&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73517&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73517&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73517&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73517&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73517&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73517&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73517&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73517&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73517&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73517&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73517&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73517&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73517&r=mysqlcfg