From: kraghuba at in dot ibm dot com Operating system: Linux, windows PHP version: 5.3CVS-2007-11-05 (snap) PHP Bug Type: Arrays related Bug description: array_intersect_assoc() does not emit warning messages for error inputs
Description: ------------ array_intersect_assoc() doesn't produce warning message when incorrect number of arguments are passed (i.e. Zero argument or one less than expected number of arguments). This problem is applicable to php5.3 and php6 only. On php5 it generates correct warning message. Reproduce code: --------------- <?php $arr = array(1, 2, 3, 4); var_dump( array_intersect_assoc() ); var_dump( array_intersect_assoc($arr) ); ?> Expected result: ---------------- Warning: array_intersect_assoc(): at least 2 parameters are required, 0 given in %s on line %d NULL Warning: array_intersect_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=43197&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43197&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43197&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43197&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43197&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43197&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43197&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43197&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43197&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43197&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43197&r=support Expected behavior: http://bugs.php.net/fix.php?id=43197&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43197&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43197&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43197&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43197&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43197&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43197&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43197&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43197&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43197&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43197&r=mysqlcfg
