From 2313b88fb8537640affe1f933d2a97067865f42a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 16 May 2026 15:10:36 +0900 Subject: feat(port): port InstalledVersions.php --- crates/shirabe-php-shim/src/lib.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'crates/shirabe-php-shim') 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 { todo!() } +/// Equivalent to PHP's __DIR__ magic constant +pub fn php_dir() -> String { + todo!() +} + +/// Equivalent to PHP's `require ` 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(callback: F, array: &[T]) -> Vec where F: Fn(&T) -> U, -- cgit v1.3.1