#44853 [Fbk->Opn]: filter_callback crash

From: Date: Tue, 29 Apr 2008 09:51:09 +0000
Subject: #44853 [Fbk->Opn]: filter_callback crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-124575@lists.php.net to get a copy of this message
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] scottmac@php.net 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

« previous php.bugs (#124575) next »