Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60972 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33770 invoked from network); 27 Jun 2012 00:14:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2012 00:14:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=christopher.jones@oracle.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=christopher.jones@oracle.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain oracle.com designates 148.87.113.117 as permitted sender) X-PHP-List-Original-Sender: christopher.jones@oracle.com X-Host-Fingerprint: 148.87.113.117 rcsinet15.oracle.com Received: from [148.87.113.117] ([148.87.113.117:51936] helo=rcsinet15.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/70-28996-F505AEF4 for ; Tue, 26 Jun 2012 20:14:24 -0400 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q5R0EJJL028989 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 27 Jun 2012 00:14:20 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q5R0EIBD010941 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 27 Jun 2012 00:14:19 GMT Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q5R0EHMu022107; Tue, 26 Jun 2012 19:14:17 -0500 Received: from [130.35.70.154] (/130.35.70.154) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 26 Jun 2012 17:14:17 -0700 Message-ID: <4FEA5059.2050009@oracle.com> Date: Tue, 26 Jun 2012 17:14:17 -0700 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: OISHI Kazuo CC: internals@lists.php.net References: <4FAF1EE5.5010409@sugarcrm.com> <4FDA8833.1040408@gmail.com> <874nqdnnas.fsf@molech.giraffy.jp> <4FE364D8.9000204@oracle.com> <8762ajq0vp.fsf@molech.giraffy.jp> In-Reply-To: <8762ajq0vp.fsf@molech.giraffy.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet22.oracle.com [156.151.31.94] Subject: Re: [PHP-DEV] bug 54547 From: christopher.jones@oracle.com (Christopher Jones) On 06/22/2012 12:08 AM, OISHI Kazuo wrote: > Hi, > >>> In addition to == operator, >, <, >=, and <= operators are influenced. >>> >>> And, hexdecimal format for big number is now case-sensitive. >>> >>> http://www.mail-archive.com/internals@lists.php.net/msg58789.html >> >> Can you add some phpt tests for all the cases you've raised? > > This is the phpt. All tests passed in PHP 5.4.3 but failed in 5.4.4. > (I don't know how I can add this phpt into tests.) > > ========================================================== > --TEST-- > Bug #62097: New behavior of string == has a compatibility problem (2) > --FILE-- > var_dump("09223372036854775808" == "9223372036854775808"); > var_dump(" 9223372036854775808" == "9223372036854775808"); > var_dump("12345678901234567890.0" == "12345678901234567890"); > var_dump("12345678901234567890e1" == "123456789012345678900"); > var_dump("12345678901234567890e1" == "12345678901234567890E1"); > var_dump("0xffffffffffffffff" == "0xFFFFFFFFFFFFFFFF"); > var_dump("0xffffffffffffffff" > "0xFFFFFFFFFFFFFFFF"); > var_dump("0xffffffffffffffff" <= "0xFFFFFFFFFFFFFFFF"); > > --EXPECT-- > bool(true) > bool(true) > bool(true) > bool(true) > bool(true) > bool(true) > bool(false) > bool(true) > ========================================================== > Does this need an architecture specific SKIPIF? See the mention of PHP_INT_SIZE on http://qa.php.net/write-test.php I don't know whether to suggest adding an XFAIL for 5.4, or whether to suggest changing the expected output. This would depend on whether there is likely to be any code change to 5.4 or not. Chris -- christopher.jones@oracle.com http://twitter.com/#!/ghrd