diff options
Diffstat (limited to 'crates/shirabe-php-shim/src')
| -rw-r--r-- | crates/shirabe-php-shim/src/process.rs | 16 | ||||
| -rw-r--r-- | crates/shirabe-php-shim/src/runtime.rs | 5 |
2 files changed, 0 insertions, 21 deletions
diff --git a/crates/shirabe-php-shim/src/process.rs b/crates/shirabe-php-shim/src/process.rs index b082f472..fd8b7d2d 100644 --- a/crates/shirabe-php-shim/src/process.rs +++ b/crates/shirabe-php-shim/src/process.rs @@ -396,22 +396,6 @@ pub fn getmypid() -> i64 { std::process::id() as i64 } -// No-op until real signal handling is wired up; signal registration itself is -// deferred (see the TODO(plugin) notes in SignalRegistry::register). -pub fn pcntl_async_signals(_enable: bool) {} - -pub fn pcntl_signal(_signal: i64, _handler: PhpMixed) -> bool { - // TODO(phase-c): registering a signal handler requires the signal-handling subsystem to be - // wired up (cf. SignalRegistry / the TODO(plugin) notes). sigaction(2) itself is reachable, but - // the handler is a PHP callable whose dispatch depends on the runtime callable mechanism. - todo!() -} - -pub fn pcntl_signal_get_handler(_signal: i64) -> PhpMixed { - // TODO(phase-c): see pcntl_signal; needs the signal-handling subsystem. - todo!() -} - pub fn posix_getuid() -> i64 { nix::unistd::getuid().as_raw() as i64 } diff --git a/crates/shirabe-php-shim/src/runtime.rs b/crates/shirabe-php-shim/src/runtime.rs index 2b5e7155..71356427 100644 --- a/crates/shirabe-php-shim/src/runtime.rs +++ b/crates/shirabe-php-shim/src/runtime.rs @@ -354,11 +354,6 @@ pub fn memory_get_peak_usage(_real_usage: bool) -> i64 { 0 } -pub fn call_php_callable(_callback: &PhpMixed, _args: &[PhpMixed]) -> PhpMixed { - // TODO(php-runtime): PhpMixed carries no callable variant; a runtime callable cannot be invoked. - todo!() -} - 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. |
