1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
--TEST-- bcsqrt() requires a well-formed value --EXTENSIONS-- bcmath --FILE-- <?php try { bcsqrt('a'); } catch (\ValueError $e) { echo $e->getMessage() . PHP_EOL; } ?> --EXPECT-- bcsqrt(): Argument #1 ($num) is not well-formed