1--TEST-- 2Bug #75178 (bcpowmod() misbehaves for non-integer base or modulus) 3--SKIPIF-- 4<?php 5if (!extension_loaded('bcmath')) die('skip bcmath extension is not available'); 6?> 7--FILE-- 8<?php 9try { 10 var_dump(bcpowmod('4.1', '4', '3', 3)); 11} catch (\ValueError $e) { 12 echo $e->getMessage() . \PHP_EOL; 13} 14try { 15 var_dump(bcpowmod('4', '4', '3.1', 3)); 16} catch (\ValueError $e) { 17 echo $e->getMessage() . \PHP_EOL; 18} 19?> 20--EXPECT-- 21bcpowmod(): Argument #1 ($num) cannot have a fractional part 22bcpowmod(): Argument #3 ($modulus) cannot have a fractional part 23