summaryrefslogtreecommitdiff
path: root/ext/bcmath/tests/bcscale_variation001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bcmath/tests/bcscale_variation001.phpt')
-rw-r--r--ext/bcmath/tests/bcscale_variation001.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/bcmath/tests/bcscale_variation001.phpt b/ext/bcmath/tests/bcscale_variation001.phpt
new file mode 100644
index 0000000000..2a7b8db5e5
--- /dev/null
+++ b/ext/bcmath/tests/bcscale_variation001.phpt
@@ -0,0 +1,13 @@
+--TEST--
+bcscale() with negative argument
+--SKIPIF--
+<?php if(!extension_loaded("bcmath")) print "skip"; ?>
+--INI--
+bcmath.scale=0
+--FILE--
+<?php
+bcscale(-4);
+echo bcdiv("20.56", "4");
+?>
+--EXPECTF--
+5 \ No newline at end of file