aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-09 05:59:40 +0900
committernsfisis <nsfisis@gmail.com>2026-08-09 05:59:40 +0900
commitf3d60c7836da0d50d59a22cfd6e4692e3dc75581 (patch)
treeeafdc0bdd8a05b11e5a511d7ab4bb48a5e42609e /crates/shirabe-php-shim
parenta6fc2831562fa83b8f20a3b8285b87102c1775d8 (diff)
downloadphp-shirabe-f3d60c7836da0d50d59a22cfd6e4692e3dc75581.tar.gz
php-shirabe-f3d60c7836da0d50d59a22cfd6e4692e3dc75581.tar.zst
php-shirabe-f3d60c7836da0d50d59a22cfd6e4692e3dc75581.zip
test(console): cover the dev build warning branch
The deadline is a constant baked in at build time, so PHP's define() of COMPOSER_DEV_WARNING_TIME cannot make Application take that branch. Application now holds the deadline in a field that __set_dev_warning_time overrides, letting testDevWarning run instead of staying ignored. The define() shim, whose only caller was that test, goes away with it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-shim')
-rw-r--r--crates/shirabe-php-shim/src/runtime.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/crates/shirabe-php-shim/src/runtime.rs b/crates/shirabe-php-shim/src/runtime.rs
index 05396b3b..c00c8f51 100644
--- a/crates/shirabe-php-shim/src/runtime.rs
+++ b/crates/shirabe-php-shim/src/runtime.rs
@@ -49,12 +49,6 @@ pub fn constant(_name: &str) -> PhpMixed {
todo!()
}
-pub fn define(_constant_name: &str, _value: PhpMixed) -> bool {
- // TODO(php-runtime): defining a constant at runtime needs the same registry `constant` and
- // `defined` would read from; the shim has none.
- todo!()
-}
-
// Models the constants defined in a standard modern PHP CLI environment on a
// non-Windows platform with the common extensions loaded (curl, openssl, json).
// Windows-only, HHVM and Composer-bootstrap constants are reported undefined.