xref: /PHP-7.3/Zend/tests/bug70804.phpt (revision 42c8f5e9)
1--TEST--
2Bug #70804 (Unary add on negative zero produces positive zero)
3--FILE--
4<?php
5
6var_dump(+(-0.0));
7var_dump(+(float)"-0");
8
9$foo = +(-sin(0));
10
11var_dump($foo);
12
13?>
14--EXPECT--
15float(-0)
16float(-0)
17float(-0)
18