1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Cleanup temp file

This commit is contained in:
Arnaud Le Blanc
2024-02-21 17:57:58 +01:00
parent 75c4a6fe33
commit 5b501f28e5

View File

@@ -34,6 +34,9 @@ function php_cli_server_start(
if ($output_file_fd === false) {
die(sprintf("Failed opening output file %s\n", $output_file));
}
register_shutdown_function(function () use ($output_file) {
unlink($output_file);
});
$descriptorspec = array(
0 => STDIN,