From: vtsupermok at gmail dot com Operating system: Win Vista PHP version: 5.2.5 PHP Bug Type: Filter related Bug description: filter_callback crash
Description: ------------ In a filter_callback function, if the function return false, the system crash, the apache hange. if return other things other than false, for example 'aaa',true,1, it works Reproduce code: --------------- function returnTrue($val){ return true; } function returnFalse($val){ return false; } var_dump(filter_var('aaaa', FILTER_CALLBACK, array("options"=>"returnTrue"))); var_dump(filter_var('aaaa', FILTER_CALLBACK, array("options"=>"returnFalse"))); Expected result: ---------------- bool(true) bool(false) Actual result: -------------- nothing can see, because the system crashed -- Edit bug report at http://bugs.php.net/?id=44853&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44853&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44853&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44853&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44853&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44853&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44853&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44853&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44853&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44853&r=support Expected behavior: http://bugs.php.net/fix.php?id=44853&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44853&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44853&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44853&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44853&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44853&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44853&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44853&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44853&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44853&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44853&r=mysqlcfg