aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-php-shim/src')
-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)]