xref: /PHP-7.2/Zend/tests/bug52355.phpt (revision a4648ded)
1--TEST--
2Bug #52355 (Negating zero does not produce negative zero)
3--FILE--
4<?php
5
6var_dump(-0.0);
7var_dump(-(float)"0");
8
9$foo = -sin(0);
10
11var_dump($foo);
12
13var_dump(@(1.0 / -0.0));
14
15?>
16--EXPECT--
17float(-0)
18float(-0)
19float(-0)
20float(-INF)
21