From 087865ef50283350a3cc74a5363ba44fa7dbe5c5 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 20 Jul 2026 08:13:12 +0900 Subject: feat(php-rpc): implement phpinfo() capture over RPC DiagnoseCommand::check_platform needed phpinfo() output but shirabe-php-shim's ob_start()/phpinfo()/ob_get_clean() are unmodeled todo!()s. Add a phpinfo dispatch entry to the PHP worker (capturing output the same way extension_info already does) and a get_phpinfo() wrapper, then switch check_platform to call it directly. This unblocks the phpinfo-related panic in diagnose; the ignored tests now hit a separate RefCell double-borrow bug in check_http, so their ignore reasons are updated to point at that instead. --- crates/shirabe-php-rpc/php/worker.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crates/shirabe-php-rpc/php/worker.php') diff --git a/crates/shirabe-php-rpc/php/worker.php b/crates/shirabe-php-rpc/php/worker.php index cb2bf48d..d7d8f251 100644 --- a/crates/shirabe-php-rpc/php/worker.php +++ b/crates/shirabe-php-rpc/php/worker.php @@ -22,6 +22,11 @@ $dispatch = [ $re->info(); return (string) ob_get_clean(); }, + 'phpinfo' => static function ($what) { + ob_start(); + phpinfo((int) $what); + return (string) ob_get_clean(); + }, ]; $read_exact = static function ($conn, int $len): ?string { $buf = ''; -- cgit v1.3.1