aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/runtime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-php-shim/src/runtime.rs')
-rw-r--r--crates/shirabe-php-shim/src/runtime.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/crates/shirabe-php-shim/src/runtime.rs b/crates/shirabe-php-shim/src/runtime.rs
index ed159abb..b95c594f 100644
--- a/crates/shirabe-php-shim/src/runtime.rs
+++ b/crates/shirabe-php-shim/src/runtime.rs
@@ -368,11 +368,6 @@ pub fn require_php_file(_filename: &str) -> PhpMixed {
todo!()
}
-pub fn php_require(_file: &str) -> PhpMixed {
- // TODO(php-runtime): see require_php_file.
- todo!()
-}
-
pub fn memory_get_usage() -> i64 {
// TODO(phase-c): return PHP's actual emalloc-tracked memory usage instead of a stub 0.
0
@@ -407,21 +402,6 @@ pub fn error_get_last() -> Option<IndexMap<String, PhpMixed>> {
None
}
-pub fn globals_get(_name: &str) -> PhpMixed {
- // TODO(php-runtime): the PHP $GLOBALS superglobal is not modeled in the shim.
- todo!()
-}
-
-pub fn globals_set(_name: &str, _value: PhpMixed) {
- // TODO(php-runtime): the PHP $GLOBALS superglobal is not modeled in the shim.
- todo!()
-}
-
-pub fn clone<T: Clone>(_value: T) -> T {
- // PHP's `clone` makes a (shallow) copy of an object; Rust's Clone is the closest equivalent.
- _value
-}
-
pub fn ini_set(_varname: &str, _value: &str) -> Option<String> {
// TODO(php-runtime): ini_set must return the previous value and have its override observed by a
// subsequent ini_get; ini_get is currently a static lookup, so overrides cannot be wired up yet.