aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/filter.rs
AgeCommit message (Collapse)Author
2026-06-21feat(php-shim): implement filter_var email/ip/int validatorsnsfisis
Replace the todo!() bodies of filter_var_email, filter_var_ip, and filter_var_int_with_range with working validators. Like filter_var_url these are pragmatic rather than byte-for-byte compatible with PHP's hand-written filters; the divergences are noted in comments. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21refactor(php-shim): split filter_var into per-filter functionsnsfisis
Replace the dispatch-on-constant filter_var() and filter_var_with_options() with dedicated filter_var_boolean/url/email/ip and filter_var_int_with_range, dropping the FILTER_VALIDATE_* constants and updating all call sites. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21refactor(php-shim): split lib.rsnsfisis