#44853 [NoF->Csd]: filter_callback crash
| From: | felipe@php.net | Date: | Sat, 04 Jul 2009 15:42:40 +0000 |
| Subject: | #44853 [NoF->Csd]: filter_callback crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-139254@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: No Feedback
+Status: Closed
Bug Type: Filter related
Operating System: Win Vista
PHP Version: 5.2.5
Previous Comments:
------------------------------------------------------------------------
[2008-05-07 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2008-04-29 11:40:40] felipe@php.net
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.
------------------------------------------------------------------------
[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