#44212 [Opn->Csd]: array_diff_assoc not reporting missing arguments
| From: | felipe@php.net | Date: | Fri, 22 Feb 2008 13:32:32 +0000 |
| Subject: | #44212 [Opn->Csd]: array_diff_assoc not reporting missing arguments | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-122578@lists.php.net to get a copy of this message | ||
ID: 44212
Updated by: felipe@php.net
Reported By: nicholsr@php.net
-Status: Open
+Status: Closed
Bug Type: Arrays related
PHP Version: 5.3CVS-2008-02-22 (snap)
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-02-22 12:11:17] nicholsr@php.net
Description:
------------
array_diff_assoc is not reporting missing arguments - see example code
Reproduce code:
---------------
var_dump( array_diff_assoc() );
$arr1 = array(1, 2);
var_dump( array_diff_assoc($arr1) );
Expected result:
----------------
Warning: array_diff_assoc(): at least 2 parameters are required, 0
given in %s on line %d
NULL
Warning: array_diff_assoc(): at least 2 parameters are required, 1
given in %s on line %d
NULL
Actual result:
--------------
NULL
NULL
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44212&edit=1