mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
960318ed95
Closes GH-5211
24 lines
407 B
PHP
24 lines
407 B
PHP
--TEST--
|
|
Bug #73954 (NAN check fails on Alpine Linux with musl)
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(NAN);
|
|
var_dump(is_nan(NAN));
|
|
|
|
function takes_int(int $int) {
|
|
}
|
|
|
|
takes_int(log(tan(3.14)));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
float(NAN)
|
|
bool(true)
|
|
|
|
Fatal error: Uncaught TypeError: takes_int(): Argument #1 ($int) must be of type int, float given, called in %s:%d
|
|
Stack trace:
|
|
#0 %s(9): takes_int(NAN)
|
|
#1 {main}
|
|
thrown in %s on line 6
|