Bug #75768 [NEW]: libxml_get_errors function report different error in the same conditions
| From: | laurentiusilviu at gmail dot com | Date: | Fri, 05 Jan 2018 18:47:45 +0000 |
| Subject: | Bug #75768 [NEW]: libxml_get_errors function report different error in the same conditions | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-213390@lists.php.net to get a copy of this message | ||
From: laurentiusilviu at gmail dot com
Operating system: Windows 7
PHP version: 5.6.33
Package: SimpleXML related
Bug Type: Bug
Bug description:libxml_get_errors function report different error in the same conditions
Description:
------------
I use XAMPP 5.6.32
I have this XML string:
<abc>
<def>
Content
</def>
</abc>
and I used the functions from here:
http://php.net/manual/ro/function.libxml-get-errors.php
to get XML errors
Test script:
---------------
Case 1:
In order to have an error in XML file, I replaced <dfe> with <dfeg>
Returned error:
Fatal Error 76: Opening and ending tag mismatch: defg line 3 and def
Line: 5 Column: 11
Result seems to be ok;
Case 2:
In order to have the same error in XML file, I replaced <dfe> with <df>
Returned error:
Fatal Error 73: expected '>' Line: 5 Column: 6
Result: In my opinion, it is not relevant. I expected to have the same
error message as in Case 1.
Expected result:
----------------
I expected to have the same result in both cases.
--
Edit bug report at https://bugs.php.net/bug.php?id=75768&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75768&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75768&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75768&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75768&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75768&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75768&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75768&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75768&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75768&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75768&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75768&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75768&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75768&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75768&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75768&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75768&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75768&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75768&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75768&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75768&r=mysqlcfg