aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/runtime.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-09 08:40:21 +0900
committernsfisis <nsfisis@gmail.com>2026-08-09 08:40:21 +0900
commitbe514aeff17ab7d8debcc59acddd07f7c7b72bd7 (patch)
tree4e57cb51fe76e34de35aa176ae26e9423270b8d8 /crates/shirabe-php-shim/src/runtime.rs
parent4d974682134f20a816dde717fdbba8e76d9b10b8 (diff)
downloadphp-shirabe-be514aeff17ab7d8debcc59acddd07f7c7b72bd7.tar.gz
php-shirabe-be514aeff17ab7d8debcc59acddd07f7c7b72bd7.tar.zst
php-shirabe-be514aeff17ab7d8debcc59acddd07f7c7b72bd7.zip
refactor(installer): drop the GC control calls
Composer turns the cycle collector off around the dependency solver, but Rust has no GC, so the gc_collect_cycles/gc_disable/gc_enable shims were no-ops. Remove the call sites and the now-callerless shim functions. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-shim/src/runtime.rs')
-rw-r--r--crates/shirabe-php-shim/src/runtime.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/crates/shirabe-php-shim/src/runtime.rs b/crates/shirabe-php-shim/src/runtime.rs
index 6ad5bc29..e24d6d69 100644
--- a/crates/shirabe-php-shim/src/runtime.rs
+++ b/crates/shirabe-php-shim/src/runtime.rs
@@ -394,19 +394,6 @@ pub fn ini_set(_varname: &str, _value: &str) -> Option<String> {
todo!()
}
-pub fn gc_collect_cycles() -> i64 {
- // Rust has no cycle collector; nothing is collected.
- 0
-}
-
-pub fn gc_disable() {
- // Rust has no cycle collector to disable.
-}
-
-pub fn gc_enable() {
- // Rust has no cycle collector to enable.
-}
-
pub fn phpinfo(_what: i64) {
// TODO(php-runtime): phpinfo() dumps the full PHP runtime configuration, which the shim does not
// model.