From 0f97875904b461900a4ad92a61e743bf7afe4929 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 16 May 2026 21:35:32 +0900 Subject: feat(port): port EventDispatcher.php --- crates/shirabe-php-shim/src/lib.rs | 82 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 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 64da904..35db21d 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -168,6 +168,88 @@ pub fn substr(s: &str, start: i64, length: Option) -> String { pub const FILTER_VALIDATE_EMAIL: i64 = 274; +pub const PATH_SEPARATOR: &str = ":"; + +pub fn spl_autoload_functions() -> Vec { + todo!() +} + +pub fn spl_autoload_register(callback: PhpMixed) { + todo!() +} + +pub fn spl_autoload_unregister(callback: PhpMixed) -> bool { + todo!() +} + +pub fn array_pop(array: &mut Vec) -> Option { + todo!() +} + +pub fn array_push(array: &mut Vec, value: String) -> i64 { + todo!() +} + +pub fn array_search_in_vec(needle: &str, haystack: &[String]) -> Option { + todo!() +} + +pub fn array_splice(array: &mut Vec, offset: usize, length: usize, replacement: &[T]) -> Vec { + todo!() +} + +pub fn array_map_str_fn String>(callback: F, array: &[String]) -> Vec { + todo!() +} + +pub fn is_callable(value: &PhpMixed) -> bool { + todo!() +} + +pub fn is_object(value: &PhpMixed) -> bool { + todo!() +} + +pub fn is_a(object_or_class: &PhpMixed, class: &str, allow_string: bool) -> bool { + todo!() +} + +pub fn str_contains(haystack: &str, needle: &str) -> bool { + todo!() +} + +pub fn str_starts_with(haystack: &str, needle: &str) -> bool { + todo!() +} + +pub fn str_ends_with(haystack: &str, needle: &str) -> bool { + todo!() +} + +pub fn strpos(haystack: &str, needle: &str) -> Option { + todo!() +} + +pub fn strtoupper(s: &str) -> String { + todo!() +} + +pub fn strlen(s: &str) -> i64 { + todo!() +} + +pub fn krsort(array: &mut IndexMap) { + todo!() +} + +pub fn max_i64(a: i64, b: i64) -> i64 { + todo!() +} + +pub fn count_mixed(value: &PhpMixed) -> i64 { + todo!() +} + pub fn empty(value: &PhpMixed) -> bool { todo!() } -- cgit v1.3.1