xref: /PHP-5.4/ext/xmlreader/tests/bug36743.phpt (revision aaa1d626)
1--TEST--
2Bug #36743 (In a class extending XMLReader array properties are not writable)
3--SKIPIF--
4<?php if (!extension_loaded("xmlreader")) print "skip"; ?>
5--FILE--
6<?php
7
8class Test extends XMLReader
9{
10    private $testArr = array();
11    public function __construct()
12    {
13        $this->testArr[] = 1;
14        var_dump($this->testArr);
15    }
16}
17
18$t = new test;
19
20echo "Done\n";
21?>
22--EXPECT--
23array(1) {
24  [0]=>
25  int(1)
26}
27Done
28