mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Add test for bcpwmod
bc_raisemod's mod can't be zero and expo can't be negative
This commit is contained in:
parent
51f2a5803f
commit
3253057021
10
ext/bcmath/tests/bcpowmod_error4.phpt
Normal file
10
ext/bcmath/tests/bcpowmod_error4.phpt
Normal file
@ -0,0 +1,10 @@
|
||||
--TEST--
|
||||
bc_raisemod's mod can't be zero and expo can't be negative
|
||||
--CREDITS--
|
||||
Gabriel Caruso (carusogabriel34@gmail.com)
|
||||
--SKIPIF--
|
||||
<?php if(!extension_loaded('bcmath')) die('skip bcmath extension not loaded'); ?>
|
||||
--FILE--
|
||||
<?php var_dump(bcpowmod('1', '-1', '0')); ?>
|
||||
--EXPECT--
|
||||
bool(false)
|
Loading…
Reference in New Issue
Block a user