1
0
mirror of https://github.com/php/php-src.git synced 2026-04-01 21:22:13 +02:00
Files
archived-php-src/ext/simplexml/tests/bug26976.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

29 lines
394 B
PHP

--TEST--
Bug #26976 (Can not access array elements using array indices)
--EXTENSIONS--
simplexml
--FILE--
<?php
$root = simplexml_load_string(
'<?xml version="1.0"?>
<root>
<child>a</child>
<child>b</child>
<child>c</child>
<child>d</child>
</root>
');
echo $root->child[0], "\n";
echo $root->child[1], "\n";
echo $root->child[2], "\n";
echo $root->child[3], "\n";
?>
--EXPECT--
a
b
c
d