xref: /PHP-7.0/Zend/tests/bug73954.phpt (revision 044dd304)
1--TEST--
2Bug #73954 (NAN check fails on Alpine Linux with musl)
3--FILE--
4<?php
5
6var_dump(NAN);
7var_dump(is_nan(NAN));
8
9function takes_int(int $int) {
10}
11
12takes_int(log(tan(3.14)));
13
14?>
15--EXPECTF--
16float(NAN)
17bool(true)
18
19Fatal error: Uncaught TypeError: Argument 1 passed to takes_int() must be of the type integer, float given, called in %s on line 9 and defined in %s:6
20Stack trace:
21#0 %s(9): takes_int(NAN)
22#1 {main}
23  thrown in %s on line 6
24