summaryrefslogtreecommitdiff
path: root/ext/bcmath/tests/bcpowmod.phpt
blob: 6b1f30e5770472bf5744380c2bb78600ec4f3d4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
bcpowmod() - Raise an arbitrary precision number to another, reduced by a specified modulus
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--INI--
bcmath.scale=0
--FILE--
<?php
echo bcpowmod("5", "2", "7") . "\n";
echo bcpowmod("-2", "5", "7") . "\n";
echo bcpowmod("10", "2147483648", "2047");
?>
--EXPECT--
4
-4
790