diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-16 13:29:51 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-16 13:29:51 +0900 |
| commit | cd7d993215e310629f34fc1b48322cd451949893 (patch) | |
| tree | e7a0ab5d3f928b969bbe0ba4d9a501f819f6f822 /crates/shirabe-php-shim | |
| parent | 6d3265766aa2a421cba02c1c0e6257469a7fa02b (diff) | |
| download | php-shirabe-cd7d993215e310629f34fc1b48322cd451949893.tar.gz php-shirabe-cd7d993215e310629f34fc1b48322cd451949893.tar.zst php-shirabe-cd7d993215e310629f34fc1b48322cd451949893.zip | |
feat(port): port Compiler.php
Diffstat (limited to 'crates/shirabe-php-shim')
| -rw-r--r-- | crates/shirabe-php-shim/src/lib.rs | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index 0df6550..a9d0e3a 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -785,3 +785,63 @@ pub fn trigger_error(message: &str, error_level: i64) { pub fn sys_get_temp_dir() -> String { todo!() } + +pub fn json_decode(s: &str, assoc: bool) -> anyhow::Result<PhpMixed> { + todo!() +} + +pub fn http_build_query(data: &[(&str, &str)], sep_str: &str, sep: &str) -> String { + todo!() +} + +pub fn token_get_all(source: &str) -> Vec<PhpMixed> { + todo!() +} + +pub const T_COMMENT: i64 = 315; +pub const T_DOC_COMMENT: i64 = 316; +pub const T_WHITESPACE: i64 = 317; + +pub fn dirname_levels(path: &str, levels: i64) -> String { + todo!() +} + +pub fn strtr_array(s: &str, pairs: &IndexMap<String, String>) -> String { + todo!() +} + +pub fn array_search(needle: &str, haystack: &IndexMap<String, String>) -> Option<String> { + todo!() +} + +pub fn strcmp(s1: &str, s2: &str) -> i64 { + todo!() +} + +impl Phar { + pub const SHA512: i64 = 16; + + pub fn new_phar(filename: String, flags: i64, alias: &str) -> Self { + todo!() + } + + pub fn set_signature_algorithm(&mut self, algo: i64) { + todo!() + } + + pub fn start_buffering(&mut self) { + todo!() + } + + pub fn stop_buffering(&mut self) { + todo!() + } + + pub fn add_from_string(&mut self, path: &str, content: &str) { + todo!() + } + + pub fn set_stub(&mut self, stub: &str) { + todo!() + } +} |
