aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/lib.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-16 15:19:51 +0900
committernsfisis <nsfisis@gmail.com>2026-05-16 15:19:51 +0900
commitdbf09727faecce412c2d60140bd3d497cbe7c53f (patch)
tree31fddeedf6368e0a4e2344817c1f461cbf72c43f /crates/shirabe-php-shim/src/lib.rs
parent3e03d3c3a8a35010f171795ac63876ac6a616b2a (diff)
downloadphp-shirabe-dbf09727faecce412c2d60140bd3d497cbe7c53f.tar.gz
php-shirabe-dbf09727faecce412c2d60140bd3d497cbe7c53f.tar.zst
php-shirabe-dbf09727faecce412c2d60140bd3d497cbe7c53f.zip
feat(port): port NoProxyPattern.php
Diffstat (limited to 'crates/shirabe-php-shim/src/lib.rs')
-rw-r--r--crates/shirabe-php-shim/src/lib.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs
index ca2087d..dd13b94 100644
--- a/crates/shirabe-php-shim/src/lib.rs
+++ b/crates/shirabe-php-shim/src/lib.rs
@@ -519,6 +519,8 @@ pub fn fileperms(path: &str) -> i64 {
pub const FILTER_VALIDATE_BOOLEAN: i64 = 258;
pub const FILTER_VALIDATE_URL: i64 = 273;
+pub const FILTER_VALIDATE_IP: i64 = 275;
+pub const FILTER_VALIDATE_INT: i64 = 257;
pub fn filter_var(value: &str, filter: i64) -> bool {
todo!()
@@ -1053,6 +1055,30 @@ pub fn basename_with_suffix(path: &str, suffix: &str) -> String {
todo!()
}
+pub fn inet_pton(host: &str) -> Option<Vec<u8>> {
+ todo!()
+}
+
+pub fn ltrim(s: &str, chars: Option<&str>) -> String {
+ todo!()
+}
+
+pub fn floor(value: f64) -> f64 {
+ todo!()
+}
+
+pub fn chr(value: u8) -> String {
+ todo!()
+}
+
+pub fn filter_var_with_options(
+ value: &str,
+ filter: i64,
+ options: &IndexMap<String, PhpMixed>,
+) -> PhpMixed {
+ todo!()
+}
+
pub fn call_user_func_array(callback: &str, args: &PhpMixed) -> PhpMixed {
todo!()
}