Bug #73517 [Opn->Fbk]: LineNr reports max at 65535 ... stays 65535

From: Date: Tue, 15 Nov 2016 11:18:08 +0000
Subject: Bug #73517 [Opn->Fbk]: LineNr reports max at 65535 ... stays 65535
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205375@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73517&edit=1

 ID:                 73517
 Updated by:         cmb@php.net
 Reported by:        johan at cti-computers dot be
 Summary:            LineNr reports max at 65535 ... stays 65535
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Variables related
 Operating System:   OS X El Capitan 10.11.6
 PHP Version:        Next Minor Version
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

As of PHP 7.0.0 (and libxml >= 2.9.0) you can set
LIBXML_BIGLINES[1] to get the proper line numbers. Would that
solve the issue for you?

[1] <http://php.net/manual/en/libxml.constants.php>


Previous Comments:
------------------------------------------------------------------------
[2016-11-14 19:31:47] johan at cti-computers dot be

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 this bug report at https://bugs.php.net/bug.php?id=73517&edit=1


Thread (5 messages)

« previous php.bugs (#205375) next »