diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-09 06:50:56 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-09 06:50:56 +0900 |
| commit | 6b83e68d7961f150ec15dd59d457d519e0bf8663 (patch) | |
| tree | 8342c9d7d31679c669e14a76d0349c777f6c2566 /crates/shirabe-php-shim/src/fs.rs | |
| parent | ff17dcdb757656c5e81b10070a7bbcc4ef3e97f7 (diff) | |
| download | php-shirabe-6b83e68d7961f150ec15dd59d457d519e0bf8663.tar.gz php-shirabe-6b83e68d7961f150ec15dd59d457d519e0bf8663.tar.zst php-shirabe-6b83e68d7961f150ec15dd59d457d519e0bf8663.zip | |
refactor(env): split and join PATH lists with std::env
The shim's PATH_SEPARATOR was hardcoded to ":", so every PATH list was
split and joined on the wrong character off Unix. std::env::split_paths
and join_paths use the platform's separator, which also lets the bin-dir
membership test in EventDispatcher compare list entries instead of
regex-matching the raw PATH string.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-shim/src/fs.rs')
| -rw-r--r-- | crates/shirabe-php-shim/src/fs.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/crates/shirabe-php-shim/src/fs.rs b/crates/shirabe-php-shim/src/fs.rs index 575ce26a..7a8114bb 100644 --- a/crates/shirabe-php-shim/src/fs.rs +++ b/crates/shirabe-php-shim/src/fs.rs @@ -19,8 +19,6 @@ pub const PATHINFO_EXTENSION: i64 = 4; pub const PATHINFO_DIRNAME: i64 = 1; pub const PATHINFO_BASENAME: i64 = 2; -pub const PATH_SEPARATOR: &str = ":"; - /// PHP `PHP_MAXPATHLEN`: the platform's `MAXPATHLEN` (`MAX_PATH` on Windows). pub const PHP_MAXPATHLEN: i64 = if cfg!(windows) { 260 |
