1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00
Files
archived-php-src/ext/gmp/tests/bug66872.phpt
T
Max Semenik e9f783fcdd Migrate skip checks to --EXTENSIONS--, p3
For rationale, see #6787

Extensions migrated in part 3:
* ftp
* gmp
* iconv
* opcache
* shmop
2021-04-03 15:23:25 +02:00

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