mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
dea41f3c3a
`bc_divmod()` is supposed to do integer division, so we must not apply a scale factor here.
17 lines
324 B
PHP
17 lines
324 B
PHP
--TEST--
|
|
Bug #44995 (bcpowmod() fails if scale != 0)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(bcpowmod('4', '4', '3', 1));
|
|
var_dump(bcpowmod('3234', '32345', '22345', 1));
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
string(3) "1.0"
|
|
string(7) "17334.0"
|
|
===DONE===
|