aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-16 14:46:30 +0900
committernsfisis <nsfisis@gmail.com>2026-05-16 14:46:30 +0900
commit78eb6205ccee4b8b0094b6cba7a852bb1b3a9162 (patch)
tree31a6a94d28dd73f0344753845fba857054703ab9 /crates/shirabe-php-shim/src
parent2173438176ceef9d4121787f590cabb7a0ab4e37 (diff)
downloadphp-shirabe-78eb6205ccee4b8b0094b6cba7a852bb1b3a9162.tar.gz
php-shirabe-78eb6205ccee4b8b0094b6cba7a852bb1b3a9162.tar.zst
php-shirabe-78eb6205ccee4b8b0094b6cba7a852bb1b3a9162.zip
feat(port): port Platform.php
Diffstat (limited to 'crates/shirabe-php-shim/src')
-rw-r--r--crates/shirabe-php-shim/src/lib.rs94
1 files changed, 94 insertions, 0 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs
index cefe46a..c3547a8 100644
--- a/crates/shirabe-php-shim/src/lib.rs
+++ b/crates/shirabe-php-shim/src/lib.rs
@@ -853,6 +853,100 @@ pub fn abs(value: i64) -> i64 {
todo!()
}
+pub fn str_contains(haystack: &str, needle: &str) -> bool {
+ todo!()
+}
+
+pub fn usleep(microseconds: u64) {
+ todo!()
+}
+
+pub fn mb_strlen(s: &str, encoding: &str) -> i64 {
+ todo!()
+}
+
+pub fn strlen(s: &str) -> i64 {
+ todo!()
+}
+
+pub fn substr(s: &str, offset: i64, length: Option<i64>) -> String {
+ todo!()
+}
+
+pub fn strtoupper(s: &str) -> String {
+ todo!()
+}
+
+pub fn stream_isatty(stream: PhpMixed) -> bool {
+ todo!()
+}
+
+pub fn posix_getuid() -> i64 {
+ todo!()
+}
+
+pub fn posix_geteuid() -> i64 {
+ todo!()
+}
+
+pub fn posix_getpwuid(uid: i64) -> PhpMixed {
+ todo!()
+}
+
+pub fn posix_isatty(stream: PhpMixed) -> bool {
+ todo!()
+}
+
+pub fn fstat(stream: PhpMixed) -> PhpMixed {
+ todo!()
+}
+
+pub fn getenv(name: &str) -> Option<String> {
+ todo!()
+}
+
+pub fn putenv(setting: &str) -> bool {
+ todo!()
+}
+
+/// PHP superglobal $_SERVER access
+pub fn server_get(name: &str) -> Option<String> {
+ todo!()
+}
+
+pub fn server_set(name: &str, value: String) {
+ todo!()
+}
+
+pub fn server_unset(name: &str) {
+ todo!()
+}
+
+pub fn server_contains_key(name: &str) -> bool {
+ todo!()
+}
+
+pub fn server_argv() -> Vec<String> {
+ todo!()
+}
+
+/// PHP superglobal $_ENV access
+pub fn env_get(name: &str) -> Option<String> {
+ todo!()
+}
+
+pub fn env_set(name: &str, value: String) {
+ todo!()
+}
+
+pub fn env_unset(name: &str) {
+ todo!()
+}
+
+pub fn env_contains_key(name: &str) -> bool {
+ todo!()
+}
+
impl Phar {
pub const SHA512: i64 = 16;