xref: /php-src/ext/gmp/tests/bug74670.phpt (revision f2e8c5da)
1--TEST--
2Bug #74670: Integer Underflow when unserializing GMP and possible other classes
3--EXTENSIONS--
4gmp
5--FILE--
6<?php
7$str = 'C:3:"GMP":4:{s:6666666666:""}';
8var_dump(unserialize($str));
9?>
10--EXPECTF--
11Warning: unserialize(): Error at offset 17 of 29 bytes in %s on line %d
12bool(false)
13