Skip to content

Commit 16e68ac

Browse files
committed
Return false when "Unable to fork"
1 parent 6f92483 commit 16e68ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/standard/exec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ PHPAPI int php_exec(int type, char *cmd, zval *array, zval *return_value)
197197
return pclose_return;
198198
err:
199199
pclose_return = -1;
200+
RETVAL_FALSE;
200201
goto done;
201202
}
202203
/* }}} */

0 commit comments

Comments
 (0)