|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2017-01-27 18:48 UTC] cmb@php.net
-Status: Open
+Status: Verified
-PHP Version: 7.1.1
+PHP Version: 7.0.0
[2017-01-27 18:48 UTC] cmb@php.net
[2017-02-02 17:43 UTC] nikic@php.net
-Status: Verified
+Status: Closed
-Assigned To:
+Assigned To: nikic
[2017-02-02 17:43 UTC] nikic@php.net
[2017-03-17 16:35 UTC] ajf@php.net
[2017-03-17 16:52 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 17:00:01 2025 UTC |
Description: ------------ array_key_exists fails on arrays created by get_object_vars on Objects with numeric Propertie Names. It works fine in the old PHP 5.3 enviroment. Test script: --------------- $json = '{"100308":1}'; $temp = json_decode($json); $sub = get_object_vars($temp); // Error Array var_dump($sub, array_key_exists('100308', $sub)); Expected result: ---------------- array(1) { [100308]=> int(1) } bool(true) Actual result: -------------- array(1) { ["100308"]=> int(1) } bool(false)