summaryrefslogtreecommitdiff
path: root/ext/pcntl/pcntl.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-01-03 20:44:29 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-01-03 21:10:24 +0100
commitaadd3aaed902a8f21c11984687a4e3d414a2caed (patch)
tree0bfab8aacc7044d2ed66ce86d8c92c22721ec97d /ext/pcntl/pcntl.c
parentbbcfa66e06110d8256595e644378a5358dda3558 (diff)
downloadphp-git-aadd3aaed902a8f21c11984687a4e3d414a2caed.tar.gz
Use RETURN_THROWS() in various places
Diffstat (limited to 'ext/pcntl/pcntl.c')
-rw-r--r--ext/pcntl/pcntl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c
index 4405de2a41..17f49ce243 100644
--- a/ext/pcntl/pcntl.c
+++ b/ext/pcntl/pcntl.c
@@ -605,7 +605,7 @@ PHP_FUNCTION(pcntl_waitpid)
if (z_rusage) {
z_rusage = zend_try_array_init(z_rusage);
if (!z_rusage) {
- return;
+ RETURN_THROWS();
}
memset(&rusage, 0, sizeof(struct rusage));
@@ -654,7 +654,7 @@ PHP_FUNCTION(pcntl_wait)
if (z_rusage) {
z_rusage = zend_try_array_init(z_rusage);
if (!z_rusage) {
- return;
+ RETURN_THROWS();
}
memset(&rusage, 0, sizeof(struct rusage));
@@ -1084,7 +1084,7 @@ PHP_FUNCTION(pcntl_sigprocmask)
if (user_oldset != NULL) {
user_oldset = zend_try_array_init(user_oldset);
if (!user_oldset) {
- return;
+ RETURN_THROWS();
}
for (signo = 1; signo < NSIG; ++signo) {