mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07: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.
24 lines
381 B
PHP
24 lines
381 B
PHP
--TEST--
|
|
bcadd() requires well-formed values
|
|
--EXTENSIONS--
|
|
bcmath
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
bcadd('a', '1');
|
|
} catch (\ValueError $e) {
|
|
echo $e->getMessage() . PHP_EOL;
|
|
}
|
|
|
|
try {
|
|
bcadd('1', 'a');
|
|
} catch (\ValueError $e) {
|
|
echo $e->getMessage() . PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
bcadd(): Argument #1 ($num1) is not well-formed
|
|
bcadd(): Argument #2 ($num2) is not well-formed
|