From 17425b59d81443096cf53dc2f2512664ba966e56 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 16 May 2026 20:34:06 +0900 Subject: feat(port): port ClassLoader.php --- crates/shirabe-php-shim/src/lib.rs | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'crates/shirabe-php-shim/src') diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index db0ea45..55f4447 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -527,6 +527,44 @@ pub fn filter_var(value: &str, filter: i64) -> bool { } pub fn ini_get(option: &str) -> Option { + let _ = option; + todo!() +} + +pub fn apcu_add(key: &str, var: PhpMixed) -> bool { + let _ = (key, var); + todo!() +} + +pub fn apcu_fetch(key: &str, success: &mut bool) -> PhpMixed { + let _ = (key, success); + todo!() +} + +pub fn spl_autoload_register( + callback: Box PhpMixed + Send + Sync>, + throw: bool, + prepend: bool, +) -> bool { + let _ = (callback, throw, prepend); + todo!() +} + +pub fn spl_autoload_unregister( + callback: Box PhpMixed + Send + Sync>, +) -> bool { + let _ = callback; + todo!() +} + +pub fn stream_resolve_include_path(filename: &str) -> Option { + let _ = filename; + todo!() +} + +/// Equivalent to PHP `include $file;` +pub fn include_file(file: &str) -> PhpMixed { + let _ = file; todo!() } -- cgit v1.3.1