source: src/router/php7/Zend/tests/bug73954.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 2 months ago

update php

File size: 443 bytes
Line 
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
Note: See TracBrowser for help on using the repository browser.