aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-11 12:31:06 +0900
committernsfisis <nsfisis@gmail.com>2026-08-11 12:31:06 +0900
commitc18e25b3384c7640b2bc4d77314fddcc90651d21 (patch)
tree760871c26262b92bad6e6f622be6b7d8c147d518 /crates/shirabe-php-shim/src
parent9539fea16e0d8d07faf7edf50d480e0a80c4ccfc (diff)
downloadphp-shirabe-c18e25b3384c7640b2bc4d77314fddcc90651d21.tar.gz
php-shirabe-c18e25b3384c7640b2bc4d77314fddcc90651d21.tar.zst
php-shirabe-c18e25b3384c7640b2bc4d77314fddcc90651d21.zip
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.
Diffstat (limited to 'crates/shirabe-php-shim/src')
-rw-r--r--crates/shirabe-php-shim/src/lib.rs2
-rw-r--r--crates/shirabe-php-shim/src/output.rs9
2 files changed, 0 insertions, 11 deletions
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<String> {
- todo!()
-}