|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-04-28 13:48 UTC] scottmac@php.net
[2008-04-29 09:51 UTC] vtsupermok at gmail dot com
[2008-04-29 11:40 UTC] felipe@php.net
[2008-05-07 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 15:00:01 2025 UTC |
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