aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/lib.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-16 14:51:10 +0900
committernsfisis <nsfisis@gmail.com>2026-05-16 14:51:10 +0900
commit3d5a56f7c7565f0f3f9d858985af1a011b63036f (patch)
tree68d805364f0c453fcef038caa094058f651f65aa /crates/shirabe-php-shim/src/lib.rs
parent78eb6205ccee4b8b0094b6cba7a852bb1b3a9162 (diff)
downloadphp-shirabe-3d5a56f7c7565f0f3f9d858985af1a011b63036f.tar.gz
php-shirabe-3d5a56f7c7565f0f3f9d858985af1a011b63036f.tar.zst
php-shirabe-3d5a56f7c7565f0f3f9d858985af1a011b63036f.zip
feat(port): port AuthHelper.php
Diffstat (limited to 'crates/shirabe-php-shim/src/lib.rs')
-rw-r--r--crates/shirabe-php-shim/src/lib.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs
index c3547a8..ea94e52 100644
--- a/crates/shirabe-php-shim/src/lib.rs
+++ b/crates/shirabe-php-shim/src/lib.rs
@@ -238,9 +238,14 @@ pub const E_USER_NOTICE: i64 = 1024;
pub const E_DEPRECATED: i64 = 8192;
pub const E_USER_DEPRECATED: i64 = 16384;
+pub const PHP_URL_SCHEME: i64 = 0;
pub const PHP_URL_HOST: i64 = 1;
pub const PHP_URL_PORT: i64 = 2;
+pub const PHP_URL_USER: i64 = 3;
+pub const PHP_URL_PASS: i64 = 4;
pub const PHP_URL_PATH: i64 = 5;
+pub const PHP_URL_QUERY: i64 = 6;
+pub const PHP_URL_FRAGMENT: i64 = 7;
pub const PATHINFO_FILENAME: i64 = 64;
pub const PATHINFO_EXTENSION: i64 = 4;
pub const PATHINFO_DIRNAME: i64 = 1;
@@ -947,6 +952,22 @@ pub fn env_contains_key(name: &str) -> bool {
todo!()
}
+pub fn str_replace(search: &str, replace: &str, subject: &str) -> String {
+ todo!()
+}
+
+pub fn trim(s: &str, chars: Option<&str>) -> String {
+ todo!()
+}
+
+pub fn count(value: &PhpMixed) -> i64 {
+ todo!()
+}
+
+pub fn sprintf(format: &str, args: &[PhpMixed]) -> String {
+ todo!()
+}
+
impl Phar {
pub const SHA512: i64 = 16;