1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 07:58:20 +02:00
Files
archived-php-src/ext/gmp/tests/bug66872.phpt
T
2014-03-12 14:17:08 +01:00

14 lines
305 B
PHP

--TEST--
Bug #66872: Crash when passing string to gmp_testbit
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--FILE--
<?php
var_dump(gmp_testbit("abc", 1));
?>
--EXPECTF--
Warning: gmp_testbit(): Unable to convert variable to GMP - string is not an integer in %s on line %d
bool(false)