From: [EMAIL PROTECTED] 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