|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-06-14 16:04 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
-Package: Unknown/Other Function
+Package: *General Issues
[2019-06-14 16:04 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 03:00:01 2025 UTC |
Description: ------------ Turns out if the first argument(array) provided is smaller than the second one, it always return the empty array. Test script: --------------- <? var_dump( array_diff_key( [ 'a'=>1, ], [ 'a'=>1, 'b'=>1 ] ) ); Expected result: ---------------- array(0) { ["b"]=> int(1) } Actual result: -------------- array(0) { }