mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Merge branch 'PHP-7.1'
* PHP-7.1: Avoid exact floating point comparison
This commit is contained in:
commit
06eb61591a
1 changed files with 2 additions and 2 deletions
|
@ -10,12 +10,12 @@ date.timezone=UTC
|
||||||
$location = timezone_location_get(new DateTimeZone("Europe/Oslo"));
|
$location = timezone_location_get(new DateTimeZone("Europe/Oslo"));
|
||||||
var_dump($location);
|
var_dump($location);
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--EXPECTF--
|
||||||
array(4) {
|
array(4) {
|
||||||
["country_code"]=>
|
["country_code"]=>
|
||||||
string(2) "NO"
|
string(2) "NO"
|
||||||
["latitude"]=>
|
["latitude"]=>
|
||||||
float(59.91666)
|
float(59.9166%d)
|
||||||
["longitude"]=>
|
["longitude"]=>
|
||||||
float(10.75)
|
float(10.75)
|
||||||
["comments"]=>
|
["comments"]=>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue