xref: /PHP-8.3/ext/xmlreader/tests/bug36743.phpt (revision 74859783)
1--TEST--
2Bug #36743 (In a class extending XMLReader array properties are not writable)
3--EXTENSIONS--
4xmlreader
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