Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61243 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32930 invoked from network); 15 Jul 2012 05:57:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jul 2012 05:57:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.153 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.153 smtp153.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.153] ([67.192.241.153:59878] helo=smtp153.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/56-20866-2DB52005 for ; Sun, 15 Jul 2012 01:57:39 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp5.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 1D18158743 for ; Sun, 15 Jul 2012 01:57:35 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp5.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id D6BB75810E for ; Sun, 15 Jul 2012 01:57:34 -0400 (EDT) Message-ID: <50025BCE.1090409@sugarcrm.com> Date: Sat, 14 Jul 2012 22:57:34 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: bug #49510 From: smalyshev@sugarcrm.com (Stas Malyshev) 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