summaryrefslogtreecommitdiff
path: root/ext/xmlreader/tests/bug36743.phpt
blob: 45747d49f10bedc26aa8853a901cc85683769037 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Bug #36743 (In a class extending XMLReader array properties are not writable)
--FILE--
<?php

class Test extends XMLReader
{
    private $testArr = array();
    public function __construct()
    {
        $this->testArr[] = 1;
        var_dump($this->testArr);
    }
}

$t = new test;

echo "Done\n";
?>
--EXPECT--	
array(1) {
  [0]=>
  int(1)
}
Done