You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression: filter_var() FILTER_VALIDATE_INT accepts overflow string past PHP_INT_MAX (ext/filter/logical_filters.c) #17585
FILTER_VALIDATE_INT must reject decimal strings whose numeric value exceeds PHP_INT_MAX. Zend returns false; this compiler coerces/truncates and returns 9223372036854775807 (on 64-bit).
Fix:parseDecimalIntegerString() in ext/filter/VmFilter.php — decimal strings whose magnitude exceeds native int bounds now return false (php-src ext/filter/logical_filters.c parity). PHP_INT_MIN handled as a direct edge case.
Activity
PurHur commentedon Jul 10, 2026
claim: cursor-agent-lane-c — starting this run
Stdlib: reject FILTER_VALIDATE_INT overflow past PHP_INT_MAX (#17585) (…
PurHur commentedon Jul 10, 2026
Merged via #17593.
Fix:
parseDecimalIntegerString()inext/filter/VmFilter.php— decimal strings whose magnitude exceeds native int bounds now returnfalse(php-srcext/filter/logical_filters.cparity).PHP_INT_MINhandled as a direct edge case.Verification:
```bash
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && php bin/vm.php test/repro/maintainer_gap_filter_validate_int_overflow.php'
ok
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && vendor/bin/phpunit --filter VmFilterTest'
OK (42 tests)
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && vendor/bin/phpunit --filter filter_validate_int_overflow'
OK (2 tests)
```
PurHur commentedon Jul 10, 2026
claim: PHP Runtime → PHP — starting this run (#17585 FILTER_VALIDATE_INT overflow rejection in ext/filter/VmFilter.php).