|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-21 09:20 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 06:00:01 2025 UTC |
Description: ------------ Array_key_exists accepts ArrayObject since PHP 5.0.0, but 5.3.0 refuse it. Feature or bug? Reproduce code: --------------- $arr = array('a' => 10); $obj = new ArrayObject($arr); echo array_key_exists('a', $obj); Expected result: ---------------- TRUE Actual result: -------------- Warning: array_key_exists() expects parameter 2 to be array, object given NULL