Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / ext / filter / tests / bug47745.phpt
blobfeb0c2b6d863c55c247f07100a9cbdb12cce0d42
1 --TEST--
2 Bug #47745 (FILTER_VALIDATE_INT doesn't allow minimum integer)
3 --SKIPIF--
4 <?php if (!extension_loaded("filter")) die("skip"); ?>
5 --FILE--
6 <?php
7 $s = (string)(-PHP_INT_MAX-1);
8 var_dump(intval($s));
9 var_dump(filter_var($s, FILTER_VALIDATE_INT));
11 --EXPECTF--
12 int(-%d)
13 int(-%d)