diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-07-20 08:13:12 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-07-20 08:13:12 +0900 |
| commit | 087865ef50283350a3cc74a5363ba44fa7dbe5c5 (patch) | |
| tree | b27ded5001c46feb587839771347389f609a7c57 /crates/shirabe-php-rpc/php | |
| parent | a9dc11a1a0d8d442ab85b3eeb8791f2a8069d528 (diff) | |
| download | php-shirabe-087865ef50283350a3cc74a5363ba44fa7dbe5c5.tar.gz php-shirabe-087865ef50283350a3cc74a5363ba44fa7dbe5c5.tar.zst php-shirabe-087865ef50283350a3cc74a5363ba44fa7dbe5c5.zip | |
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.
Diffstat (limited to 'crates/shirabe-php-rpc/php')
| -rw-r--r-- | crates/shirabe-php-rpc/php/worker.php | 5 |
1 files changed, 5 insertions, 0 deletions
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 = ''; |
