Skip to content

Commit 5b501f2

Browse files
committed
Cleanup temp file
1 parent 75c4a6f commit 5b501f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sapi/cli/tests/php_cli_server.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ function php_cli_server_start(
3434
if ($output_file_fd === false) {
3535
die(sprintf("Failed opening output file %s\n", $output_file));
3636
}
37+
register_shutdown_function(function () use ($output_file) {
38+
unlink($output_file);
39+
});
3740

3841
$descriptorspec = array(
3942
0 => STDIN,

0 commit comments

Comments
 (0)