php-src/ext/bcmath/tests/bcsqrt_error1.phpt

12 lines
250 B
Plaintext
Raw Normal View History

2009-08-30 11:10:20 +00:00
--TEST--
bcsqrt — Get the square root of an arbitrary precision number
--CREDITS--
Antoni Torrents
antoni@solucionsinternet.com
--FILE--
<?php
echo bcsqrt('-9');
?>
--EXPECTF--
Warning: bcsqrt(): Square root of negative number in %s.php on line %d