xref: /PHP-7.3/ext/bcmath/tests/bug54598.phpt (revision b2919853)
1--TEST--
2Bug #54598 (bcpowmod() may return 1 if modulus is 1)
3--SKIPIF--
4<?php
5if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
6?>
7--FILE--
8<?php
9var_dump(bcpowmod(5, 0, 1));
10var_dump(bcpowmod(5, 0, 1, 3));
11?>
12===DONE===
13--EXPECT--
14string(1) "0"
15string(5) "0.000"
16===DONE===
17