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() generates segmentation fault with non-array input(s)
Description: ------------ array_intersect_assoc() generates segmentation fault when any of its argument is given as non array. There is no warning message issued indicating that an array should be passed. This problem is noticed with the drivers after 18th Oct 2007. Applicable to php5.2, php5.3 and php6. Reproduce code: --------------- <?php $arr = array(1, 2, 3, 4); $val = 1234; var_dump( array_intersect_assoc($arr, $val) ); ?> Expected result: ---------------- Warning: array_intersect(): Argument #2 is not an array in %s on line %d NULL Actual result: -------------- Segmentation fault -- Edit bug report at http://bugs.php.net/?id=43196&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43196&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43196&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43196&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43196&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43196&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43196&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43196&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43196&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43196&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43196&r=support Expected behavior: http://bugs.php.net/fix.php?id=43196&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43196&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43196&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43196&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43196&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43196&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43196&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43196&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43196&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43196&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43196&r=mysqlcfg