1--TEST-- 2bcdiv — Divide two arbitrary precision numbers 3--CREDITS-- 4TestFest2009 5Antoni Torrents 6antoni@solucionsinternet.com 7--SKIPIF-- 8<?php if(!extension_loaded("bcmath")) print "skip"; ?> 9--FILE-- 10<?php 11try { 12 bcdiv('10.99', '0'); 13} catch (DivisionByZeroError $ex) { 14 echo $ex->getMessage(), PHP_EOL; 15} 16?> 17--EXPECT-- 18Division by zero 19