mirror of
https://github.com/php/php-src.git
synced 2026-04-29 19:23:22 +02:00
e9f783fcdd
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
17 lines
281 B
PHP
17 lines
281 B
PHP
--TEST--
|
|
Bug #66872: Crash when passing string to gmp_testbit
|
|
--EXTENSIONS--
|
|
gmp
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
var_dump(gmp_testbit("abc", 1));
|
|
} catch (\ValueError $e) {
|
|
echo $e->getMessage() . \PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
gmp_testbit(): Argument #1 ($num) is not an integer string
|