aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/runtime.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-21 16:31:44 +0900
committernsfisis <nsfisis@gmail.com>2026-06-21 16:32:52 +0900
commit657440d01423b50153d07ebc288d9bd2fc982d52 (patch)
tree1a4b936f8eb0d2df660a390dc9aed0c076ebaa37 /crates/shirabe-php-shim/src/runtime.rs
parentfcef25f6ef36287a4984ffdaab39df84f5aceeba (diff)
downloadphp-shirabe-657440d01423b50153d07ebc288d9bd2fc982d52.tar.gz
php-shirabe-657440d01423b50153d07ebc288d9bd2fc982d52.tar.zst
php-shirabe-657440d01423b50153d07ebc288d9bd2fc982d52.zip
refactor(json): eliminate json_last_error in favor of Result
json_encode/json_encode_ex now return anyhow::Result<String> instead of Option, so callers no longer need json_last_error() to get the failure reason. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-shim/src/runtime.rs')
-rw-r--r--crates/shirabe-php-shim/src/runtime.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/shirabe-php-shim/src/runtime.rs b/crates/shirabe-php-shim/src/runtime.rs
index cc63af6..2f98891 100644
--- a/crates/shirabe-php-shim/src/runtime.rs
+++ b/crates/shirabe-php-shim/src/runtime.rs
@@ -61,7 +61,6 @@ pub fn defined(name: &str) -> bool {
| "CURL_VERSION_LIBZ"
| "CURL_VERSION_ZSTD"
| "GLOB_BRACE"
- | "JSON_ERROR_UTF8"
| "OPENSSL_VERSION_TEXT"
| "PHP_BINARY"
| "SIGINT"