summaryrefslogtreecommitdiff
path: root/ext/bcmath/tests
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2017-09-06 14:28:51 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2017-09-06 14:28:51 +0200
commitcf61ec64a4f1aedf244e052e5e633c7ef009f145 (patch)
tree86b600052aa46cb4ab452796ec5c79e4c8bc6019 /ext/bcmath/tests
parent8e6619445f0029ade97581839f99645215a416c4 (diff)
parent1e3435b2898ea2b9e16ca92064edd8fa1a07b44c (diff)
downloadphp-git-cf61ec64a4f1aedf244e052e5e633c7ef009f145.tar.gz
Merge branch 'pull-request/778' into bcscale-return-old-value
Diffstat (limited to 'ext/bcmath/tests')
-rw-r--r--ext/bcmath/tests/bcscale_variation003.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/bcmath/tests/bcscale_variation003.phpt b/ext/bcmath/tests/bcscale_variation003.phpt
new file mode 100644
index 0000000000..b1c541644c
--- /dev/null
+++ b/ext/bcmath/tests/bcscale_variation003.phpt
@@ -0,0 +1,18 @@
+--TEST--
+bcscale() return value
+--SKIPIF--
+<?php if(!extension_loaded("bcmath")) print "skip"; ?>
+--INI--
+bcmath.scale=0
+--FILE--
+<?php
+var_dump(bcscale(1));
+var_dump(bcscale(4));
+var_dump(bcscale());
+var_dump(bcscale());
+?>
+--EXPECT--
+int(0)
+int(1)
+int(4)
+int(4)