|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-15 13:47 UTC] tony2001@php.net
[2006-03-15 13:59 UTC] tony2001@php.net
[2006-03-17 11:18 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
Description: ------------ Array data members behave incorrect when class inherits from builtin one. The first push to the member array is ignored, the other pushes work as usual. Reproduce code: --------------- class Test extends XMLReader { private $testArr = array(); public function __construct() { $this->testArr[] = 1; var_dump($this->testArr); } } Expected result: ---------------- array(1) { [0] => int(1) } Actual result: -------------- array(0) { }