aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/linters/src/Linters/NoDirectEnvAccess.php
AgeCommit message (Collapse)Author
2026-08-16build(linters): forbid direct std::env accessnsfisis
PHP keeps three separate environment storages and docs/dev/env-vars- porting.md maps each to its own shim construct. Reaching for std::env silently picks one, so the porting target has to be chosen by reading the PHP source rather than by whichever Rust call is at hand. Detect var/var_os/vars/vars_os/set_var/remove_var. current_dir, args, consts, temp_dir, current_exe and the path split/join helpers are not environment storage and stay allowed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>