diff options
Diffstat (limited to 'crates/shirabe-php-shim/src/lib.rs')
| -rw-r--r-- | crates/shirabe-php-shim/src/lib.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index 59626ea..3ec8296 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -1239,9 +1239,8 @@ pub fn include_file(file: &str) -> PhpMixed { todo!() } -pub fn set_error_handler(_callback: fn(i64, &str, &str, i64) -> bool) { - todo!() -} +// TODO(php-runtime): the callback should be registered in PHP runtime. +pub fn set_error_handler(_callback: fn(i64, &str, &str, i64) -> bool) {} pub fn debug_backtrace() -> Vec<IndexMap<String, Box<PhpMixed>>> { todo!() @@ -1598,12 +1597,6 @@ pub fn restore_error_handler() { todo!() } -/// Closure-capturing variant of PHP `set_error_handler()`. -pub fn set_error_handler_closure(callback: Box<dyn FnMut(i64, &str) -> bool>) { - let _ = callback; - todo!() -} - pub fn stream_get_contents_with_max(stream: PhpMixed, max_length: Option<i64>) -> Option<String> { let _ = (stream, max_length); todo!() |
