|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-02-11 23:21 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2020-02-11 23:21 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Mar 19 22:00:01 2026 UTC |
Description: ------------ I updated a library which did use \ArrayObject and access its key with the key function. I tested the script with both 7.4.0 and current 7.4.2 the result of the `key()` call on \ArrayObject does return in 7.4 always null instead on 7.3 it returns successfully the key. For me it looks like all array functions has no effect on the \ArrayObject. Test script: --------------- // should return `string(4) "test"` will return instead `NULL` var_dump( key( new \ArrayObject(["test" => "123"]) ) );