mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
41bbb116dd
- of 0.0 should result in -0.0 Closes GH-10978
17 lines
215 B
PHP
17 lines
215 B
PHP
--TEST--
|
|
Unary minus constant expression consistency
|
|
--FILE--
|
|
<?php
|
|
|
|
const ZERO = 0.0;
|
|
const MINUS_ZERO = -ZERO;
|
|
$minus_zero = -ZERO;
|
|
|
|
var_dump(MINUS_ZERO);
|
|
var_dump($minus_zero);
|
|
|
|
?>
|
|
--EXPECT--
|
|
float(-0)
|
|
float(-0)
|