1--TEST-- 2Bug #81577: (Exceptions in interrupt handlers: cleanup_live_vars) 3--EXTENSIONS-- 4pcntl 5posix 6--XLEAK-- 7leaks are not fixed yet 8--FILE-- 9<?php 10pcntl_async_signals(true); 11pcntl_signal(SIGTERM, function ($signo) { throw new Exception("Signal"); }); 12try { 13 array_merge([1], [2]) + posix_kill(posix_getpid(), SIGTERM); 14} catch (Throwable $ex) { 15 echo get_class($ex) , " : " , $ex->getMessage() , "\n"; 16} 17?> 18--EXPECT-- 19Exception : Signal 20