repo.or.cz
/
tomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updates to Tomato RAF including NGINX && PHP
[tomato.git]
/
release
/
src
/
router
/
php
/
ext
/
filter
/
tests
/
bug47745.phpt
blob
feb0c2b6d863c55c247f07100a9cbdb12cce0d42
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));
10
?>
11
--EXPECTF--
12
int(-%d)
13
int(-%d)