mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/pcntl: Remove bool type coercions in tests
This commit is contained in:
@@ -5,7 +5,7 @@ pcntl
|
||||
posix
|
||||
--FILE--
|
||||
<?php
|
||||
pcntl_async_signals(1);
|
||||
pcntl_async_signals(true);
|
||||
|
||||
pcntl_signal(SIGTERM, function ($signo) { echo "Signal handler called!\n"; });
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
pcntl_async_signals(1);
|
||||
pcntl_async_signals(true);
|
||||
pcntl_signal(SIGALRM, function($signo) {
|
||||
throw new Exception("Alarm!");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user