summaryrefslogtreecommitdiff
path: root/ext/pcntl/pcntl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pcntl/pcntl.c')
-rw-r--r--ext/pcntl/pcntl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c
index 70a9fec402..4405de2a41 100644
--- a/ext/pcntl/pcntl.c
+++ b/ext/pcntl/pcntl.c
@@ -862,7 +862,7 @@ PHP_FUNCTION(pcntl_exec)
if (argi >= argc) break;
if (!try_convert_to_string(element)) {
efree(argv);
- return;
+ RETURN_THROWS();
}
*current_arg = Z_STRVAL_P(element);
@@ -895,7 +895,7 @@ PHP_FUNCTION(pcntl_exec)
zend_string_release(key);
efree(argv);
efree(envp);
- return;
+ RETURN_THROWS();
}
/* Length of element + equal sign + length of key + null */