xref: /PHP-7.0/ext/ctype/tests/bug34645.phpt (revision 80e39119)
1--TEST--
2Bug #34645 (ctype corrupts memory when validating large numbers)
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7$id = 394829384;
8var_dump(ctype_digit($id));
9var_dump($id);
10?>
11--EXPECT--
12bool(true)
13int(394829384)
14