xref: /PHP-8.2/ext/bcmath/tests/bug54598.phpt (revision 56f90492)
1--TEST--
2Bug #54598 (bcpowmod() may return 1 if modulus is 1)
3--EXTENSIONS--
4bcmath
5--FILE--
6<?php
7var_dump(bcpowmod(5, 0, 1));
8var_dump(bcpowmod(5, 0, 1, 3));
9?>
10--EXPECT--
11string(1) "0"
12string(5) "0.000"
13