1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/simplexml/tests/bug67116.phpt
Max Semenik 7f2f0c007c Migrate skip checks to --EXTENSIONS--, p4
For rationale, see #6787

Extensions migrated in part 4:
* simplexml
* skeleton
* soap
* spl
* sqlite3
* sysvmsg
* sysvsem
* tidy - also removed a check for an ancient dependency version
2021-04-08 10:36:44 +02:00

92 lines
1.8 KiB
PHP

--TEST--
Bug #67116 (Inconsistent parsing of Nodes w/o linefeed)
--EXTENSIONS--
simplexml
--FILE--
<?php
$xml = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<aa>
<bs>
<b>b</b>
</bs>
<cs><c>b</c></cs>
<ds><d id="d"></d></ds>
<es>
<e id="e"></e>
</es>
<fs><f id="f"></f><f id="f"></f></fs>
</aa>
XML;
$sxe = simplexml_load_string($xml);
print_r($sxe);
?>
--EXPECT--
SimpleXMLElement Object
(
[bs] => SimpleXMLElement Object
(
[b] => b
)
[cs] => SimpleXMLElement Object
(
[c] => b
)
[ds] => SimpleXMLElement Object
(
[d] => SimpleXMLElement Object
(
[@attributes] => Array
(
[id] => d
)
)
)
[es] => SimpleXMLElement Object
(
[e] => SimpleXMLElement Object
(
[@attributes] => Array
(
[id] => e
)
)
)
[fs] => SimpleXMLElement Object
(
[f] => Array
(
[0] => SimpleXMLElement Object
(
[@attributes] => Array
(
[id] => f
)
)
[1] => SimpleXMLElement Object
(
[@attributes] => Array
(
[id] => f
)
)
)
)
)