bug74670.phpt 290 B

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