mirror of
https://github.com/php/php-src.git
synced 2025-01-21 11:13:38 +08:00
- Fix for bug #16811
This commit is contained in:
parent
4ec1a03653
commit
8ffd089e02
@ -525,6 +525,7 @@ PHP_FUNCTION(shell_exec)
|
||||
if ((in=VCWD_POPEN(Z_STRVAL_PP(cmd), "r"))==NULL) {
|
||||
#endif
|
||||
php_error(E_WARNING, "Unable to execute '%s'", Z_STRVAL_PP(cmd));
|
||||
RETURN_FALSE;
|
||||
}
|
||||
allocated_space = EXEC_INPUT_BUF;
|
||||
ret = (char *) emalloc(allocated_space);
|
||||
|
Loading…
Reference in New Issue
Block a user