aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/lib.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-16 21:35:32 +0900
committernsfisis <nsfisis@gmail.com>2026-05-16 22:17:14 +0900
commit0f97875904b461900a4ad92a61e743bf7afe4929 (patch)
treea407b6d899a2501c867614b0e38501f15f5149e6 /crates/shirabe-php-shim/src/lib.rs
parent2d42ac22612fdf2ce21994ba1f571bbeec540994 (diff)
downloadphp-shirabe-0f97875904b461900a4ad92a61e743bf7afe4929.tar.gz
php-shirabe-0f97875904b461900a4ad92a61e743bf7afe4929.tar.zst
php-shirabe-0f97875904b461900a4ad92a61e743bf7afe4929.zip
feat(port): port EventDispatcher.php
Diffstat (limited to 'crates/shirabe-php-shim/src/lib.rs')
-rw-r--r--crates/shirabe-php-shim/src/lib.rs82
1 files changed, 82 insertions, 0 deletions
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<i64>) -> String {
pub const FILTER_VALIDATE_EMAIL: i64 = 274;
+pub const PATH_SEPARATOR: &str = ":";
+
+pub fn spl_autoload_functions() -> Vec<PhpMixed> {
+ 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<String>) -> Option<String> {
+ todo!()
+}
+
+pub fn array_push(array: &mut Vec<String>, value: String) -> i64 {
+ todo!()
+}
+
+pub fn array_search_in_vec(needle: &str, haystack: &[String]) -> Option<usize> {
+ todo!()
+}
+
+pub fn array_splice<T: Clone>(array: &mut Vec<T>, offset: usize, length: usize, replacement: &[T]) -> Vec<T> {
+ todo!()
+}
+
+pub fn array_map_str_fn<F: Fn(&str) -> String>(callback: F, array: &[String]) -> Vec<String> {
+ 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<usize> {
+ todo!()
+}
+
+pub fn strtoupper(s: &str) -> String {
+ todo!()
+}
+
+pub fn strlen(s: &str) -> i64 {
+ todo!()
+}
+
+pub fn krsort<V>(array: &mut IndexMap<i64, V>) {
+ 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!()
}