aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-07-24 02:54:34 +0900
committernsfisis <nsfisis@gmail.com>2026-07-24 02:54:34 +0900
commit793571b52de57df2b3cde9a3ba6a2823676aba41 (patch)
tree0aee776e11a362edc6420575e1496383bcfdcce4 /crates/shirabe-php-shim
parent46a029b338931fd76c8fc44fc13c5774b3657af0 (diff)
downloadphp-shirabe-793571b52de57df2b3cde9a3ba6a2823676aba41.tar.gz
php-shirabe-793571b52de57df2b3cde9a3ba6a2823676aba41.tar.zst
php-shirabe-793571b52de57df2b3cde9a3ba6a2823676aba41.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-shim')
-rw-r--r--crates/shirabe-php-shim/src/runtime.rs5
1 files changed, 0 insertions, 5 deletions
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