From f17eb98f1b73602fa87399cc04f0fbe2afd1f3f2 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 16 May 2026 10:22:49 +0900 Subject: feat(port): port SvnDownloader.php, FossilDriver.php, Request.php, PathRepository.php, StreamContextFactory.php Co-Authored-By: Claude Sonnet 4.6 --- crates/shirabe-php-shim/src/lib.rs | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 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 e2d745f..b0f1c6c 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -683,3 +683,50 @@ pub fn strtolower(s: &str) -> String { pub fn array_intersect_key(array1: &IndexMap>, array2: &IndexMap>) -> IndexMap> { todo!() } + +pub fn is_file(path: &str) -> bool { + todo!() +} + +pub fn spl_object_hash(object: &T) -> String { + todo!() +} + +pub fn serialize(value: &PhpMixed) -> String { + todo!() +} + +pub fn stream_context_create(options: &IndexMap, params: Option<&IndexMap>) -> PhpMixed { + todo!() +} + +pub fn stripos(haystack: &str, needle: &str) -> Option { + todo!() +} + +pub fn php_uname(mode: &str) -> String { + todo!() +} + +pub fn uasort(array: &mut Vec, compare: F) +where + F: Fn(&str, &str) -> i64, +{ + todo!() +} + +pub fn array_replace_recursive(base: IndexMap, replacement: IndexMap) -> IndexMap { + todo!() +} + +pub const PHP_MAJOR_VERSION: i64 = 8; +pub const PHP_MINOR_VERSION: i64 = 1; +pub const PHP_RELEASE_VERSION: i64 = 0; + +pub const GLOB_MARK: i64 = 8; +pub const GLOB_ONLYDIR: i64 = 1024; +pub const GLOB_BRACE: i64 = 4096; + +pub fn glob_with_flags(pattern: &str, flags: i64) -> Vec { + todo!() +} -- cgit v1.3.1