Skip to content

Commit

Permalink
Fix pcntl_signal_get_handler() test
Browse files Browse the repository at this point in the history
Test was failing on Fedora.
  • Loading branch information
trowski committed Jul 11, 2016
1 parent b003768 commit 1ba20e3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ext/pcntl/tests/pcntl_signal_get_handler.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ function pcntl_test($signo) {}
pcntl_signal(SIGUSR1, 'pcntl_test');
var_dump(pcntl_signal_get_handler(SIGUSR1));

pcntl_signal(SIGUSR1, SIG_IGN);
pcntl_signal(SIGUSR1, SIG_DFL);
var_dump(pcntl_signal_get_handler(SIGUSR1));

pcntl_signal(SIGUSR1, SIG_DFL);
pcntl_signal(SIGUSR1, SIG_IGN);
var_dump(pcntl_signal_get_handler(SIGUSR1));

posix_kill(posix_getpid(), SIGUSR1);
Expand All @@ -25,8 +25,6 @@ echo "ok\n";
--EXPECTF--
int(0)
string(10) "pcntl_test"
int(1)
int(0)
User defined signal 1

Termsig=10
int(1)
ok

0 comments on commit 1ba20e3

Please sign in to comment.