|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-11-15 00:55 UTC] felipe@php.net
[2011-11-15 21:02 UTC] rasmus@php.net
[2011-11-15 21:02 UTC] rasmus@php.net
-Status: Open
+Status: Bogus
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 10:00:01 2025 UTC |
Description: ------------ A warning occurs when you call array_diff with one nested and one flat array. This code worked on 5.3. Test script: --------------- <?php $a = array(0 => "id"); $b = array(0 => array("foo" => "bar")); $d = array_diff($a, $b); var_dump($d); Expected result: ---------------- array(1) { [0]=> string(2) "id" } Actual result: -------------- Notice: Array to string conversion in /home/benny/code/php/tests/array_diff.php on line 6 array(1) { [0]=> string(2) "id" }