|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-08-23 12:48 UTC] laruence@php.net
[2015-08-23 12:48 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2015-09-03 18:10 UTC] ab@php.net
[2016-07-20 11:36 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 02:00:01 2025 UTC |
Description: ------------ none Test script: --------------- <?php function & test($arg) { return $arg; } $arg = new Stdclass(); $arg->name = array(); test($arg)->name[1] = "xxxx"; var_dump($arg); Expected result: ---------------- object(stdClass)#1 (1) { ["name"]=> array(1) { [1]=> string(4) "xxxx" } } Actual result: -------------- object(stdClass)#1 (1) { ["name"]=> array(0) { } }