Return to bcsqrt_error1.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / bcmath / tests |
1.1 misho 1: --TEST-- 2: bcsqrt — Get the square root of an arbitrary precision number 3: --CREDITS-- 4: Antoni Torrents 5: antoni@solucionsinternet.com 6: --SKIPIF-- 7: <?php if(!extension_loaded("bcmath")) print "skip"; ?> 8: --FILE-- 9: <?php 10: echo bcsqrt('-9'); 11: ?> 12: --EXPECTF-- 13: Warning: bcsqrt(): Square root of negative number in %s.php on line %d