Annotation of embedaddon/php/ext/xmlreader/tests/bug36743.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #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:
! 8: class 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:
! 20: echo "Done\n";
! 21: ?>
! 22: --EXPECT--
! 23: array(1) {
! 24: [0]=>
! 25: int(1)
! 26: }
! 27: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>