php-src/ext/bcmath/tests/bcdiv_error1.phpt
2012-10-10 10:27:49 +08:00

15 lines
306 B
PHP

--TEST--
bcdiv Divide two arbitrary precision numbers
--CREDITS--
TestFest2009
Antoni Torrents
antoni@solucionsinternet.com
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--FILE--
<?php
echo bcdiv('10.99', '0');
?>
--EXPECTF--
Warning: bcdiv(): Division by zero in %s.php on line %d