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'); 6if (substr(PHP_OS, 0, 3) == 'WIN') { 7 die('skip Not valid for windows'); 8} 9?> 10--FILE-- 11<?php 12var_dump(bcpowmod('4.1', '4', '3', 3)); 13var_dump(bcpowmod('4', '4', '3.1', 3)); 14?> 15===DONE=== 16--EXPECT-- 17bc math warning: non-zero scale in base 18string(5) "1.000" 19bc math warning: non-zero scale in modulus 20string(5) "1.000" 21===DONE=== 22