#44853 [Opn->Fbk]: filter_callback crash
| From: | felipe@php.net | Date: | Tue, 29 Apr 2008 11:40:41 +0000 |
| Subject: | #44853 [Opn->Fbk]: filter_callback crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-124576@lists.php.net to get a copy of this message | ||
ID: 44853
Updated by: felipe@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:
This bug was fixed in PHP 5.2.6RC1. Make sure the version used in your
test. (see the php version)
I can't reproduce on PHP 5.2.6RC6-dev.
Previous Comments:
------------------------------------------------------------------------
[2008-04-29 09:51:09] vtsupermok at gmail dot com
I just try the latest window version but it still not work. The result
also same with before
------------------------------------------------------------------------
[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