mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
56f90492d6
For rationale, see https://github.com/php/php-src/pull/6787 Extensions migrated in this part: * bcmath * bz2 * calendar * com_dotnet * ctype Closes GH-6797.
17 lines
237 B
PHP
17 lines
237 B
PHP
--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
|