Skip to content

Commit

Permalink
PHP 8: Fix tests so that we can see the original real output
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Jul 2, 2020
1 parent 296f31d commit ce98068
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/profiler/bug00631.phpt
Expand Up @@ -3,6 +3,7 @@ Test for bug #631: Summary not written when script ended with "exit()"
--INI--
xdebug.mode=profile
xdebug.start_with_request=default
xdebug.profiler_output_name=cachegrind.out.%p.%r
--FILE--
<?php
$filename = xdebug_get_profiler_filename();
Expand All @@ -11,6 +12,7 @@ function capture() {
global $filename;
echo file_get_contents($filename);
unlink($filename);
@unlink(xdebug_get_profiler_filename());
}

register_shutdown_function('capture');
Expand Down

0 comments on commit ce98068

Please sign in to comment.