note 108411 added to domnode.getlineno
| From: | poli dot andrea at gmail dot com | Date: | Tue, 24 Apr 2012 17:20:56 +0000 |
| Subject: | note 108411 added to domnode.getlineno | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187323@lists.php.net to get a copy of this message | ||
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;
----
Server IP: 69.147.83.197
Probable Submitter: 31.188.129.86
----
Manual Page -- http://www.php.net/manual/en/domnode.getlineno.php
Edit -- https://master.php.net/note/edit/108411
Del: integrated -- https://master.php.net/note/delete/108411/integrated
Del: useless -- https://master.php.net/note/delete/108411/useless
Del: bad code -- https://master.php.net/note/delete/108411/bad+code
Del: spam -- https://master.php.net/note/delete/108411/spam
Del: non-english -- https://master.php.net/note/delete/108411/non-english
Del: in docs -- https://master.php.net/note/delete/108411/in+docs
Del: other reasons-- https://master.php.net/note/delete/108411
Reject -- https://master.php.net/note/reject/108411
Search -- https://master.php.net/manage/user-notes.php