diff options
author | Andrea Faulds <ajf@ajf.me> | 2015-12-17 22:36:14 +0000 |
---|---|---|
committer | Andrea Faulds <ajf@ajf.me> | 2015-12-17 22:39:29 +0000 |
commit | a4648ded430985e019b446939c4ff5bef36c0b91 (patch) | |
tree | 13dfc9c71de3557a351dea7918b4e63f686c2491 /Zend/tests/bug52355.phpt | |
parent | a917840f38a4743020e0d8a16fcaf23826a87500 (diff) | |
download | php-git-a4648ded430985e019b446939c4ff5bef36c0b91.tar.gz |
Fix bug #52355
Diffstat (limited to 'Zend/tests/bug52355.phpt')
-rw-r--r-- | Zend/tests/bug52355.phpt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Zend/tests/bug52355.phpt b/Zend/tests/bug52355.phpt new file mode 100644 index 0000000000..7f46c71d46 --- /dev/null +++ b/Zend/tests/bug52355.phpt @@ -0,0 +1,20 @@ +--TEST-- +Bug #52355 (Negating zero does not produce negative zero) +--FILE-- +<?php + +var_dump(-0.0); +var_dump(-(float)"0"); + +$foo = -sin(0); + +var_dump($foo); + +var_dump(@(1.0 / -0.0)); + +?> +--EXPECT-- +float(-0) +float(-0) +float(-0) +float(-INF) |