diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-09 07:29:10 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-09 07:29:10 +0900 |
| commit | f1d65c337c63b6aa3582aabc64bfbbb2f949127c (patch) | |
| tree | 18b0773032d2b8e8ac87372e9dc6b2c8a1c22284 /crates/shirabe-php-shim/src/runtime.rs | |
| parent | ae19de8597f41c83983e6e6ca35f31d845f16bd3 (diff) | |
| download | php-shirabe-f1d65c337c63b6aa3582aabc64bfbbb2f949127c.tar.gz php-shirabe-f1d65c337c63b6aa3582aabc64bfbbb2f949127c.tar.zst php-shirabe-f1d65c337c63b6aa3582aabc64bfbbb2f949127c.zip | |
test(platform): drop HHVM-only paths from HhvmDetector test
shirabe never runs on HHVM, so the HHVM_VERSION_ID branches are dead.
Dropping them leaves the shim's unimplemented `constant()` without a
caller, so remove it as well.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-shim/src/runtime.rs')
| -rw-r--r-- | crates/shirabe-php-shim/src/runtime.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/crates/shirabe-php-shim/src/runtime.rs b/crates/shirabe-php-shim/src/runtime.rs index 13513b9d..44cae087 100644 --- a/crates/shirabe-php-shim/src/runtime.rs +++ b/crates/shirabe-php-shim/src/runtime.rs @@ -43,12 +43,6 @@ pub const PHP_OS: &str = match std::env::consts::OS.as_bytes() { _ => std::env::consts::OS, }; -pub fn constant(_name: &str) -> PhpMixed { - // TODO(php-runtime): resolving a constant by name needs a runtime constant registry, which the shim - // does not provide (constants are ported as Rust `const`s, not looked up by string). - todo!() -} - // Models the constants defined in a standard modern PHP CLI environment on a // non-Windows platform with the common extensions loaded (curl, openssl, json). // Windows-only, HHVM and Composer-bootstrap constants are reported undefined. |
