#44212 [NEW]: array_diff_assoc not reporting missing arguments
| From: | nicholsr@php.net | Date: | Fri, 22 Feb 2008 12:11:17 +0000 |
| Subject: | #44212 [NEW]: array_diff_assoc not reporting missing arguments | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-122575@lists.php.net to get a copy of this message | ||
From: nicholsr@php.net
Operating system:
PHP version: 5.3CVS-2008-02-22 (snap)
PHP Bug Type: Arrays related
Bug description: array_diff_assoc not reporting missing arguments
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 bug report at http://bugs.php.net/?id=44212&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44212&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44212&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44212&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44212&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=44212&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44212&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44212&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44212&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44212&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44212&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=44212&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=44212&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44212&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44212&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44212&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44212&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44212&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44212&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44212&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44212&r=mysqlcfg