diff options
| author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-03 17:04:06 +0100 |
|---|---|---|
| committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-03 17:04:06 +0100 |
| commit | 7b4a4d2ace0015e6e7cc34f309edda91a8097d71 (patch) | |
| tree | f4543ce9ab9d6dfd37c68453de5831796af70b9f /ext/pcntl | |
| parent | 1658b5babc34c46b3b78b852e7a5f134845ace7c (diff) | |
| download | php-git-7b4a4d2ace0015e6e7cc34f309edda91a8097d71.tar.gz | |
Use RETURN_THROWS() after try_convert_to_string()
Diffstat (limited to 'ext/pcntl')
| -rw-r--r-- | ext/pcntl/pcntl.c | 4 |
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 */ |
