From 7fd7df848cdbbd8792b0043799018d51408458fc Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 2 Jul 2026 05:12:39 +0900 Subject: feat(php-rpc): implement Runtime::has_constant/get_constant via php-rpc Runtime::hasConstant/getConstant need a real PHP interpreter's defined()/ constant() to answer platform requirement checks (e.g. PHP_ZTS, PHP_INT_SIZE), which the shim can't provide since Rust constants aren't queryable by string. Extend shirabe-php-rpc's protocol to carry one string argument and return the full PHP scalar range, add defined/constant dispatch entries to the worker, and wire Runtime and get_php_version/get_php_binary onto them. --- crates/shirabe-php-rpc/Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/shirabe-php-rpc/Cargo.toml') diff --git a/crates/shirabe-php-rpc/Cargo.toml b/crates/shirabe-php-rpc/Cargo.toml index 692dda9..115381c 100644 --- a/crates/shirabe-php-rpc/Cargo.toml +++ b/crates/shirabe-php-rpc/Cargo.toml @@ -5,6 +5,7 @@ edition.workspace = true [dependencies] shirabe-external-packages.workspace = true +shirabe-php-shim.workspace = true tempfile.workspace = true [lints] -- cgit v1.3.1