xref: /PHP-7.3/ext/bcmath/tests/bug44995.phpt (revision dea41f3c)
1--TEST--
2Bug #44995 (bcpowmod() fails if scale != 0)
3--SKIPIF--
4<?php
5if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
6?>
7--FILE--
8<?php
9var_dump(bcpowmod('4', '4', '3', 1));
10var_dump(bcpowmod('3234', '32345', '22345', 1));
11?>
12===DONE===
13--EXPECT--
14string(3) "1.0"
15string(7) "17334.0"
16===DONE===
17