xref: /PHP-8.2/ext/standard/tests/math/bug74039.phpt (revision 714d825b)
1--TEST--
2Bug #74039: is_infinite(-INF) returns false
3--FILE--
4<?php
5
6var_dump(is_finite(INF));
7var_dump(is_infinite(INF));
8var_dump(is_nan(INF));
9
10var_dump(is_finite(-INF));
11var_dump(is_infinite(-INF));
12var_dump(is_nan(-INF));
13
14var_dump(is_finite(NAN));
15var_dump(is_infinite(NAN));
16var_dump(is_nan(NAN));
17
18?>
19--EXPECT--
20bool(false)
21bool(true)
22bool(false)
23bool(false)
24bool(true)
25bool(false)
26bool(false)
27bool(false)
28bool(true)
29