Skip to content

Commit e31c4ac

Browse files
committed
Hotfix newly detected memory leak
1 parent c576965 commit e31c4ac

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sapi/fpm/tests/gh9754-daemonized-stderr-close.phpt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ FPM\Tester::skipIfRoot();
1010

1111
require_once "tester.inc";
1212

13+
// TODO: fix leak on shutdown caused by alloc_globals_dtor not getting invoked
14+
$opts = getenv("ASAN_OPTIONS") ?: '';
15+
if ($opts) {
16+
$opts .= ",detect_leaks=0";
17+
} else {
18+
$opts = "detect_leaks=0";
19+
}
20+
putenv("ASAN_OPTIONS=$opts");
21+
1322
$cfg = <<<EOT
1423
[global]
1524
error_log = {{FILE:LOG}}

0 commit comments

Comments
 (0)