xref: /PHP-7.4/ext/gmp/tests/bug66872.phpt (revision 5e93a213)
1--TEST--
2Bug #66872: Crash when passing string to gmp_testbit
3--SKIPIF--
4<?php if (!extension_loaded("gmp")) print "skip"; ?>
5--FILE--
6<?php
7
8var_dump(gmp_testbit("abc", 1));
9
10?>
11--EXPECTF--
12Warning: gmp_testbit(): Unable to convert variable to GMP - string is not an integer in %s on line %d
13bool(false)
14