#44853 [Opn->Fbk]: filter_callback crash
| From: | scottmac@php.net | Date: | Mon, 28 Apr 2008 13:48:54 +0000 |
| Subject: | #44853 [Opn->Fbk]: filter_callback crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-124564@lists.php.net to get a copy of this message | ||
ID: 44853
Updated by: scottmac@php.net
Reported By: vtsupermok at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Filter related
Operating System: Win Vista
PHP Version: 5.2.5
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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