diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-16 20:34:06 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-16 20:34:06 +0900 |
| commit | 17425b59d81443096cf53dc2f2512664ba966e56 (patch) | |
| tree | 6aedbf999f642b5ce8feff616a2419a0496d1b5e /crates/shirabe-php-shim/src/lib.rs | |
| parent | c4be3e978d8fca34b6ffe409a18768f5f3b8a328 (diff) | |
| download | php-shirabe-17425b59d81443096cf53dc2f2512664ba966e56.tar.gz php-shirabe-17425b59d81443096cf53dc2f2512664ba966e56.tar.zst php-shirabe-17425b59d81443096cf53dc2f2512664ba966e56.zip | |
feat(port): port ClassLoader.php
Diffstat (limited to 'crates/shirabe-php-shim/src/lib.rs')
| -rw-r--r-- | crates/shirabe-php-shim/src/lib.rs | 38 |
1 files changed, 38 insertions, 0 deletions
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<String> { + 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<dyn Fn(&str) -> PhpMixed + Send + Sync>, + throw: bool, + prepend: bool, +) -> bool { + let _ = (callback, throw, prepend); + todo!() +} + +pub fn spl_autoload_unregister( + callback: Box<dyn Fn(&str) -> PhpMixed + Send + Sync>, +) -> bool { + let _ = callback; + todo!() +} + +pub fn stream_resolve_include_path(filename: &str) -> Option<String> { + let _ = filename; + todo!() +} + +/// Equivalent to PHP `include $file;` +pub fn include_file(file: &str) -> PhpMixed { + let _ = file; todo!() } |
