diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-16 15:24:00 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-16 15:24:00 +0900 |
| commit | db14ddcaef545fe47b5c98dc134ae67fb8483e41 (patch) | |
| tree | 832a6cdd821f3de498b65e14a50a2e3931c1c2ca /crates/shirabe-php-shim/src | |
| parent | f4e197d62e6daad4000cdebf3451219fe429c0fb (diff) | |
| download | php-shirabe-db14ddcaef545fe47b5c98dc134ae67fb8483e41.tar.gz php-shirabe-db14ddcaef545fe47b5c98dc134ae67fb8483e41.tar.zst php-shirabe-db14ddcaef545fe47b5c98dc134ae67fb8483e41.zip | |
feat(port): port JsonFile.php
Diffstat (limited to 'crates/shirabe-php-shim/src')
| -rw-r--r-- | crates/shirabe-php-shim/src/lib.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index 3f7e9e3..12972b5 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -1091,6 +1091,20 @@ pub fn iconv(in_charset: &str, out_charset: &str, string: &str) -> Option<String todo!() } +pub const JSON_ERROR_NONE: i64 = 0; +pub const JSON_ERROR_DEPTH: i64 = 1; +pub const JSON_ERROR_STATE_MISMATCH: i64 = 2; +pub const JSON_ERROR_CTRL_CHAR: i64 = 3; +pub const JSON_ERROR_UTF8: i64 = 5; + +pub fn json_last_error() -> i64 { + todo!() +} + +pub fn str_ends_with(haystack: &str, needle: &str) -> bool { + todo!() +} + pub fn call_user_func_array(callback: &str, args: &PhpMixed) -> PhpMixed { todo!() } |
