aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-php-shim')
-rw-r--r--crates/shirabe-php-shim/src/runtime.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/shirabe-php-shim/src/runtime.rs b/crates/shirabe-php-shim/src/runtime.rs
index c529c263..f7fb3b86 100644
--- a/crates/shirabe-php-shim/src/runtime.rs
+++ b/crates/shirabe-php-shim/src/runtime.rs
@@ -49,6 +49,12 @@ 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.