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