From c18e25b3384c7640b2bc4d77314fddcc90651d21 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 11 Aug 2026 12:31:06 +0900 Subject: chore(php-shim): drop the ob_start()/ob_get_clean() ports Output buffering captures whatever the PHP interpreter would echo to stdout. The shim routes no output through a buffer, so these functions could never capture anything and stayed todo!(). Record the gap in docs/known-incompatibilities.md instead. --- crates/shirabe-php-shim/src/lib.rs | 2 -- crates/shirabe-php-shim/src/output.rs | 9 --------- 2 files changed, 11 deletions(-) delete mode 100644 crates/shirabe-php-shim/src/output.rs (limited to 'crates/shirabe-php-shim/src') diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index 7d22633c..607a8887 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -11,7 +11,6 @@ mod json; mod math; mod net; mod openssl; -mod output; mod phar; mod preg; mod process; @@ -38,7 +37,6 @@ pub use json::*; pub use math::*; pub use net::*; pub use openssl::*; -pub use output::*; pub use phar::*; pub use preg::*; pub use process::*; diff --git a/crates/shirabe-php-shim/src/output.rs b/crates/shirabe-php-shim/src/output.rs deleted file mode 100644 index d4d83200..00000000 --- a/crates/shirabe-php-shim/src/output.rs +++ /dev/null @@ -1,9 +0,0 @@ -// PHP output buffering captures everything the interpreter would echo to stdout. The shim has no -// general echo-to-buffer routing, so a buffer here would silently capture nothing. -pub fn ob_start() -> bool { - todo!() -} - -pub fn ob_get_clean() -> Option { - todo!() -} -- cgit v1.3.1-4-g156e