mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
add test for 41401
This commit is contained in:
parent
bc2b546dcc
commit
cfedafff67
1 changed files with 10 additions and 0 deletions
10
Zend/tests/bug41401.phpt
Executable file
10
Zend/tests/bug41401.phpt
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
--TEST--
|
||||||
|
Bug #41401 (wrong precedence for unary minus)
|
||||||
|
--FILE--
|
||||||
|
<?php
|
||||||
|
echo 1/-2*5;
|
||||||
|
echo "\n";
|
||||||
|
echo 6/+2*-3;
|
||||||
|
--EXPECT--
|
||||||
|
-2.5
|
||||||
|
-9
|
Loading…
Add table
Add a link
Reference in a new issue