mirror of
https://github.com/php/php-src.git
synced 2025-01-27 14:13:41 +08:00
28 lines
430 B
PHP
28 lines
430 B
PHP
--TEST--
|
|
Bug #36743 (In a class extending XMLReader array properties are not writable)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("xmlreader")) print "skip"; ?>
|
|
--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
|