From 793571b52de57df2b3cde9a3ba6a2823676aba41 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 24 Jul 2026 02:54:34 +0900 Subject: refactor(filesystem-repository): drop eval() shim, defer installed.php reload to PHP runtime Rust has no PHP interpreter, so eval() can never be ported faithfully. safely_load_installed_versions()'s job of priming Composer\InstalledVersions before plugins run only matters within a single shared PHP process, which the RPC-based plugin architecture does not have; the PHP runtime process can call InstalledVersions::reload() itself instead. Co-Authored-By: Claude Sonnet 5 --- crates/shirabe-php-shim/src/runtime.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'crates/shirabe-php-shim/src') diff --git a/crates/shirabe-php-shim/src/runtime.rs b/crates/shirabe-php-shim/src/runtime.rs index 91de9e45..fa7a728c 100644 --- a/crates/shirabe-php-shim/src/runtime.rs +++ b/crates/shirabe-php-shim/src/runtime.rs @@ -468,11 +468,6 @@ pub fn php_require(_file: &str) -> PhpMixed { todo!() } -pub fn r#eval(_code: &str) -> PhpMixed { - // TODO(phase-d): `eval` runs arbitrary PHP source at runtime; there is no PHP interpreter. - todo!() -} - pub fn memory_get_usage() -> i64 { // TODO(phase-d): return PHP's actual emalloc-tracked memory usage instead of a stub 0. 0 -- cgit v1.3.1