ID: 44853 User updated by: vtsupermok at gmail dot com Reported By: vtsupermok at gmail dot com -Status: Feedback +Status: Open Bug Type: Filter related Operating System: Win Vista PHP Version: 5.2.5 New Comment:
I just try the latest window version but it still not work. The result also same with before Previous Comments: ------------------------------------------------------------------------ [2008-04-28 13:48:54] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi ------------------------------------------------------------------------ [2008-04-28 10:14:30] vtsupermok at gmail dot com 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 this bug report at http://bugs.php.net/?id=44853&edit=1