|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-11-18 10:28 UTC] cmb@php.net
-Status: Open
+Status: Duplicate
-Assigned To:
+Assigned To: cmb
[2016-11-18 10:28 UTC] cmb@php.net
[2016-11-18 10:28 UTC] requinix@php.net
-Assigned To: cmb
+Assigned To:
[2016-11-18 10:28 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 22:00:02 2025 UTC |
Description: ------------ This bug is so old. I had reported it once, but couple of developers could not read carefully the description and closed it as bogus, still it is a bug. Test script: --------------- $o = new \stdClass(); $o->{123} = 456; $a = (array)$o; $a[123] = 777; var_dump($a); Expected result: ---------------- array(1) { [123]=> int(777) } Actual result: -------------- array(2) { ["123"]=> int(456) [123]=> int(777) }