Bug #81279 [NEW]: Inconsistant parsing with simplexml_load_string function
| From: | a dot gargasas1238 at gmail dot com | Date: | Wed, 21 Jul 2021 15:39:00 +0000 |
| Subject: | Bug #81279 [NEW]: Inconsistant parsing with simplexml_load_string function | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-235244@lists.php.net to get a copy of this message | ||
From: a dot gargasas1238 at gmail dot com
Operating system: irrelavant
PHP version: Irrelevant
Package: SimpleXML related
Bug Type: Bug
Bug description:Inconsistant parsing with simplexml_load_string function
Description:
------------
bug appears in versions:
7.0.5 and later
description:
Parsing XML string returns inconsistent values. When parsing single XML
element with new lines (unix (\n) or win(\r\n)) resulting element will
be array. When new line tags are removed element turns into object
value.
Test script:
---------------
https://pastebin.com/hfv4bMZ8
Expected result:
----------------
Consistent result of parsing element as object value, or as array
Actual result:
--------------
Inconsistent result: mix of object value and array
--
Edit bug report at https://bugs.php.net/bug.php?id=81279&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81279&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81279&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81279&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81279&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81279&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81279&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81279&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81279&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81279&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81279&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81279&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81279&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81279&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81279&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81279&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81279&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81279&r=mysqlcfg