Annotation of embedaddon/php/ext/simplexml/tests/bug26976.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #26976 (Can not access array elements using array indices)
3: --SKIPIF--
4: <?php if (!extension_loaded("simplexml")) print "skip simplexml extension is not loaded"; ?>
5: --FILE--
6: <?php
7:
8: $root = simplexml_load_string(
9: '<?xml version="1.0"?>
10: <root>
11: <child>a</child>
12: <child>b</child>
13: <child>c</child>
14: <child>d</child>
15: </root>
16: ');
17:
18: echo $root->child[0], "\n";
19: echo $root->child[1], "\n";
20: echo $root->child[2], "\n";
21: echo $root->child[3], "\n";
22:
23: ?>
24: --EXPECT--
25: a
26: b
27: c
28: d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>