/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
bcmath
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/bcmath/tests/bug72093.phpt
--TEST-- Bug 72093: bcpowmod fails on negative scale and corrupts _one_ definition --SKIPIF-- <?php if(!extension_loaded("bcmath")) print "skip"; ?> --FILE-- <?php try { var_dump(bcpowmod(1, 0, 128, -200)); } catch (\ValueError $e) { echo $e->getMessage() . \PHP_EOL; } try { var_dump(bcpowmod(1, 1.2, 1, 1)); } catch (\ValueError $e) { echo $e->getMessage() . \PHP_EOL; } ?> --EXPECT-- bcpowmod(): Argument #4 ($scale) must be between 0 and 2147483647 bcpowmod(): Argument #2 ($exponent) cannot have a fractional part
Copyright ©2k19 -
Hexid
|
Tex7ure