aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-12 04:20:57 +0900
committernsfisis <nsfisis@gmail.com>2026-05-12 04:20:57 +0900
commit213c3d019a43d765638c2a0fdf26b7b322899ca1 (patch)
treeebf18e97e0e6b8c75c436490c6135916398876fb /crates/shirabe-php-shim
parent698bccd425ccefcb4728c4035fa08ebd9dd258f6 (diff)
downloadphp-shirabe-213c3d019a43d765638c2a0fdf26b7b322899ca1.tar.gz
php-shirabe-213c3d019a43d765638c2a0fdf26b7b322899ca1.tar.zst
php-shirabe-213c3d019a43d765638c2a0fdf26b7b322899ca1.zip
feat(port): port GzipDownloader.php
Diffstat (limited to 'crates/shirabe-php-shim')
-rw-r--r--crates/shirabe-php-shim/src/lib.rs50
1 files changed, 49 insertions, 1 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs
index f1a9fb1..ef74970 100644
--- a/crates/shirabe-php-shim/src/lib.rs
+++ b/crates/shirabe-php-shim/src/lib.rs
@@ -1,6 +1,6 @@
use indexmap::IndexMap;
-#[derive(Debug)]
+#[derive(Debug, Clone)]
pub enum PhpMixed {
Null,
Bool(bool),
@@ -47,6 +47,54 @@ pub fn hash(algo: &str, data: &str) -> String {
todo!()
}
+pub fn extension_loaded(name: &str) -> bool {
+ todo!()
+}
+
+pub fn gzopen(file: &str, mode: &str) -> PhpMixed {
+ todo!()
+}
+
+pub fn gzread(file: PhpMixed, length: i64) -> String {
+ todo!()
+}
+
+pub fn gzclose(file: PhpMixed) {
+ todo!()
+}
+
+pub fn fopen(file: &str, mode: &str) -> PhpMixed {
+ todo!()
+}
+
+pub fn fwrite(file: PhpMixed, data: &str, length: i64) {
+ todo!()
+}
+
+pub fn fclose(file: PhpMixed) {
+ todo!()
+}
+
+pub fn parse_url(url: &str, component: i64) -> PhpMixed {
+ todo!()
+}
+
+pub fn pathinfo(path: PhpMixed, option: i64) -> PhpMixed {
+ todo!()
+}
+
+pub fn strtr(str: &str, from: &str, to: &str) -> String {
+ todo!()
+}
+
+pub fn implode(glue: &str, pieces: &[String]) -> String {
+ todo!()
+}
+
+pub const PHP_URL_PATH: i64 = 5;
+pub const PATHINFO_FILENAME: i64 = 64;
+pub const DIRECTORY_SEPARATOR: &str = "/";
+
pub const HHVM_VERSION: Option<&str> = None;
#[derive(Debug)]