aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/runtime.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-11 23:15:02 +0900
committernsfisis <nsfisis@gmail.com>2026-08-11 23:15:02 +0900
commit73ab00d3108933c952844b3820f44230c8203807 (patch)
tree0c599481939c2e970714426111851e0037fedd06 /crates/shirabe-php-shim/src/runtime.rs
parentc18e25b3384c7640b2bc4d77314fddcc90651d21 (diff)
downloadphp-shirabe-73ab00d3108933c952844b3820f44230c8203807.tar.gz
php-shirabe-73ab00d3108933c952844b3820f44230c8203807.tar.zst
php-shirabe-73ab00d3108933c952844b3820f44230c8203807.zip
chore(php-shim): drop the PHP_INT_* constants
PHP_INT_MAX/MIN/SIZE have exact Rust counterparts under the int -> i64 mapping, so the call sites use i64::MAX directly. PHP_INT_SIZE is queried from the PHP runtime where it is actually needed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-shim/src/runtime.rs')
-rw-r--r--crates/shirabe-php-shim/src/runtime.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/shirabe-php-shim/src/runtime.rs b/crates/shirabe-php-shim/src/runtime.rs
index 71356427..74ea8350 100644
--- a/crates/shirabe-php-shim/src/runtime.rs
+++ b/crates/shirabe-php-shim/src/runtime.rs
@@ -13,10 +13,6 @@ pub const PHP_WINDOWS_VERSION_MAJOR: i64 = 0;
pub const PHP_WINDOWS_VERSION_MINOR: i64 = 0;
pub const PHP_WINDOWS_VERSION_BUILD: i64 = 0;
-pub const PHP_INT_MAX: i64 = i64::MAX;
-pub const PHP_INT_MIN: i64 = i64::MIN;
-pub const PHP_INT_SIZE: i64 = 8;
-
pub const HHVM_VERSION: Option<&str> = None;
pub const E_ALL: i64 = 32767;