diff options
| author | Scott MacVicar <scottmac@php.net> | 2009-03-30 00:41:09 +0000 |
|---|---|---|
| committer | Scott MacVicar <scottmac@php.net> | 2009-03-30 00:41:09 +0000 |
| commit | 5df74915f747814592c3d63294be895f6af481cb (patch) | |
| tree | f47ef7c1713709884cf46489dc6f12533b274f6b /ext | |
| parent | 04566e106aa5d3865c88e9b361875a22bd5512aa (diff) | |
| download | php-git-5df74915f747814592c3d63294be895f6af481cb.tar.gz | |
MFH Fix test, -2147483648 is a valid unsigned int where -2147483649 isn't.
Diffstat (limited to 'ext')
| -rwxr-xr-x | ext/filter/tests/046.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/filter/tests/046.phpt b/ext/filter/tests/046.phpt index 390930db35..ef26e17fbf 100755 --- a/ext/filter/tests/046.phpt +++ b/ext/filter/tests/046.phpt @@ -13,7 +13,7 @@ var_dump(filter_var($s, FILTER_VALIDATE_INT)); $s = sprintf("%d", -PHP_INT_MAX); var_dump(is_long(filter_var($s, FILTER_VALIDATE_INT))); -$s = sprintf("%.0f", -(PHP_INT_MAX+1)); +$s = sprintf("%.0f", ~(PHP_INT_MAX)-1); var_dump(filter_var($s, FILTER_VALIDATE_INT)); ?> --EXPECT-- |
