]> granicus.if.org Git - php/commitdiff
add test for 41401
authorStanislav Malyshev <stas@php.net>
Fri, 18 May 2007 20:13:28 +0000 (20:13 +0000)
committerStanislav Malyshev <stas@php.net>
Fri, 18 May 2007 20:13:28 +0000 (20:13 +0000)
Zend/tests/bug41401.phpt [new file with mode: 0755]

diff --git a/Zend/tests/bug41401.phpt b/Zend/tests/bug41401.phpt
new file mode 100755 (executable)
index 0000000..50d2109
--- /dev/null
@@ -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
\ No newline at end of file