xref: /PHP-7.3/ext/bcmath/tests/bcsqrt_error1.phpt (revision 610c7fbe)
1--TEST--
2bcsqrt — Get the square root of an arbitrary precision number
3--CREDITS--
4Antoni Torrents
5antoni@solucionsinternet.com
6--SKIPIF--
7<?php if(!extension_loaded("bcmath")) print "skip"; ?>
8--FILE--
9<?php
10echo bcsqrt('-9');
11?>
12--EXPECTF--
13Warning: bcsqrt(): Square root of negative number in %s.php on line %d
14