summaryrefslogtreecommitdiff
path: root/ext/bcmath/tests
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2017-11-06 17:27:22 -0500
committerSara Golemon <pollita@php.net>2017-11-06 17:27:22 -0500
commit24fd49fbabc7c5ad941095f33d05fe2e41ff667d (patch)
tree1a5a5787b29af5c203ef1511cd2723e38bb9e65a /ext/bcmath/tests
parent6c8b441f876464ca4b1143d9c281e65a3db402ba (diff)
parentb152633ecb2030e2de1f83d2d42193185ea1bc21 (diff)
downloadphp-git-24fd49fbabc7c5ad941095f33d05fe2e41ff667d.tar.gz
Merge branch 'PHP-7.2'
* PHP-7.2: Scale support for bcmod()
Diffstat (limited to 'ext/bcmath/tests')
-rw-r--r--ext/bcmath/tests/bcmod.phpt4
-rw-r--r--ext/bcmath/tests/bcmod_error1.phpt4
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/bcmath/tests/bcmod.phpt b/ext/bcmath/tests/bcmod.phpt
index 5657e02ddc..3e9ab25cb8 100644
--- a/ext/bcmath/tests/bcmod.phpt
+++ b/ext/bcmath/tests/bcmod.phpt
@@ -9,7 +9,7 @@ bcmath.scale=0
echo bcmod("11", "2"),"\n";
echo bcmod("-1", "5"),"\n";
echo bcmod("8728932001983192837219398127471", "1928372132132819737213"),"\n";
-echo bcmod("3.5", "4"),"\n";
+echo bcmod("3.5", "4", 1),"\n";
echo bcmod("1071", "357.5"),"\n";
?>
--EXPECT--
@@ -17,4 +17,4 @@ echo bcmod("1071", "357.5"),"\n";
-1
1459434331351930289678
3.5
-356.0
+356
diff --git a/ext/bcmath/tests/bcmod_error1.phpt b/ext/bcmath/tests/bcmod_error1.phpt
index e36dce285d..68a6dae470 100644
--- a/ext/bcmath/tests/bcmod_error1.phpt
+++ b/ext/bcmath/tests/bcmod_error1.phpt
@@ -7,7 +7,7 @@ antoni@solucionsinternet.com
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--FILE--
<?php
-echo bcmod('1', '2', '3');
+echo bcmod('1', '2', '3', '4');
?>
--EXPECTF--
-Warning: bcmod() expects exactly 2 parameters, 3 given in %s.php on line %d
+Warning: bcmod() expects at most 3 parameters, 4 given in %s.php on line %d