diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-16 15:10:36 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-16 15:10:36 +0900 |
| commit | 2313b88fb8537640affe1f933d2a97067865f42a (patch) | |
| tree | 2843ff80ed82ee036c2ec0576c55c286e5743932 /crates/shirabe-php-shim/src | |
| parent | 024c51da8e1a854a6349024d0458271e6bb2cdd8 (diff) | |
| download | php-shirabe-2313b88fb8537640affe1f933d2a97067865f42a.tar.gz php-shirabe-2313b88fb8537640affe1f933d2a97067865f42a.tar.zst php-shirabe-2313b88fb8537640affe1f933d2a97067865f42a.zip | |
feat(port): port InstalledVersions.php
Diffstat (limited to 'crates/shirabe-php-shim/src')
| -rw-r--r-- | crates/shirabe-php-shim/src/lib.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index 5a937ad..09477da 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -1019,6 +1019,24 @@ pub fn filemtime(filename: &str) -> Option<i64> { todo!() } +/// Equivalent to PHP's __DIR__ magic constant +pub fn php_dir() -> String { + todo!() +} + +/// Equivalent to PHP's `require <file>` returning the file's return value +pub fn require_php_file(filename: &str) -> PhpMixed { + todo!() +} + +pub fn array_flip(array: &PhpMixed) -> PhpMixed { + todo!() +} + +pub fn call_user_func_array(callback: &str, args: &PhpMixed) -> PhpMixed { + todo!() +} + pub fn array_map<T, U, F>(callback: F, array: &[T]) -> Vec<U> where F: Fn(&T) -> U, |
