Re: bug 54547
| From: | OISHI Kazuo | Date: | Fri, 22 Jun 2012 07:08:58 +0000 |
| Subject: | Re: bug 54547 | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60934@lists.php.net to get a copy of this message | ||
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--
<?php
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)
==========================================================
--
OISHI Kazuo