summaryrefslogtreecommitdiff
path: root/ext/bcmath/tests/bug54598.phpt
blob: 5f3337fadca5103df4f2cdd0e6d442ff34c0ce8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Bug #54598 (bcpowmod() may return 1 if modulus is 1)
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
?>
--FILE--
<?php
var_dump(bcpowmod(5, 0, 1));
var_dump(bcpowmod(5, 0, 1, 3));
?>
--EXPECT--
string(1) "0"
string(5) "0.000"