bug #49510

From: Date: Sun, 15 Jul 2012 05:57:34 +0000
Subject: bug #49510
Groups: php.internals 
Request: Send a blank email to internals+get-61243@lists.php.net to get a copy of this message
Hi! We've got a bit of a discussion on bug #49510 in the comments. The problem is this: filter_var('', FILTER_VALIDATE_BOOLEAN, array("flags" => FILTER_NULL_ON_FAILURE)) returns "null" (i.e. failure) while docs say boolean filter will return false on ''. I think we need to sync with the docs. The question is - should we apply it to 5.3/5.4? It is a behavior change, even though current code behavior does not match documented behavior. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#61243) next »