bug81577_3.phpt 441 B

12345678910111213141516171819
  1. --TEST--
  2. Bug #81577: (Exceptions in interrupt handlers: cleanup_live_vars)
  3. --EXTENSIONS--
  4. pcntl
  5. posix
  6. --XFAIL--
  7. leaks are not fixed yet
  8. --FILE--
  9. <?php
  10. pcntl_async_signals(true);
  11. pcntl_signal(SIGTERM, function ($signo) { throw new Exception("Signal"); });
  12. try {
  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--
  19. Exception : Signal