aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/runtime.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-09 07:47:48 +0900
committernsfisis <nsfisis@gmail.com>2026-08-09 07:48:16 +0900
commit20a876d44a7f7fe8f5d4cc77eb79a9a359aaf150 (patch)
tree2501c7f9b94e0bb2f47f1b2295583c543b52e76b /crates/shirabe-php-shim/src/runtime.rs
parent627aaead32dcf38bed255012fcf7965d9553f52e (diff)
downloadphp-shirabe-20a876d44a7f7fe8f5d4cc77eb79a9a359aaf150.tar.gz
php-shirabe-20a876d44a7f7fe8f5d4cc77eb79a9a359aaf150.tar.zst
php-shirabe-20a876d44a7f7fe8f5d4cc77eb79a9a359aaf150.zip
refactor(php-shim): remove shim functions with no callers
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.