note 108411 rejected from domnode.getlineno by danbrown
| From: | danbrown@php.net | Date: | Tue, 24 Apr 2012 17:27:17 +0000 |
| Subject: | note 108411 rejected from domnode.getlineno by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187324@lists.php.net to get a copy of this message | ||
Note Submitter: poli dot andrea at gmail dot com
----
The getLineNo() returns 65535 if the line number is greater than 65535. In order to correct this bug
I've changed the following files in libxml2 - 2.7.8 source code:
- include/libxml/tree.h
467c467
< unsigned short line; /* line number */
---
> int line; /* line number */
- SAX2.c
1612,1615c1612
< if (ctxt->input->line < 65535)
< ret->line = (short) ctxt->input->line;
< else
< ret->line = 65535;
---
> ret->line = ctxt->input->line;
2239,2242c2236
< if (ctxt->input->line < 65535)
< ret->line = (short) ctxt->input->line;
< else
< ret->line = 65535;
---
> ret->line = ctxt->input->line;
2631,2634c2625
< if (ctxt->input->line < 65535)
< ret->line = (short) ctxt->input->line;
< else
< ret->line = 65535;
---
> ret->line = ctxt->input->line;
2691,2694c2682
< if (ctxt->input->line < 65535)
< ret->line = (short) ctxt->input->line;
< else
< ret->line = 65535;
---
> ret->line = ctxt->input->line;