summaryrefslogtreecommitdiff
path: root/Zend/tests/bug70804.phpt
blob: d7fd18d98d01f6ab01772a8c4d0ef38c1ea2ff5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #70804 (Unary add on negative zero produces positive zero)
--FILE--
<?php

var_dump(+(-0.0));
var_dump(+(float)"-0");

$foo = +(-sin(0));

var_dump($foo);

?>
--EXPECT--
float(-0)
float(-0)
float(-0)