diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2002-09-19 18:59:32 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2002-09-19 18:59:32 +0000 |
| commit | a694fa9ca74fc05e6bb85b7313bdd51ebc29a6cd (patch) | |
| tree | dd30f2bd3e0529212f9c198fd7c9c1d9fe9eba50 /ext/standard/exec.h | |
| parent | 9259c4e598c4b8b3bd6b35a2bf2ac32e32143b1b (diff) | |
| download | php-git-a694fa9ca74fc05e6bb85b7313bdd51ebc29a6cd.tar.gz | |
Fixed bug #19313
Fixed argument count check for system/exec/passthru functions
Added a check to system/exec/passthru functions to make sure execution
parameter is not blank before attempting to execute it.
Diffstat (limited to 'ext/standard/exec.h')
| -rw-r--r-- | ext/standard/exec.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/exec.h b/ext/standard/exec.h index 3f53895517..c1da04bd5a 100644 --- a/ext/standard/exec.h +++ b/ext/standard/exec.h @@ -35,4 +35,6 @@ char *php_escape_shell_cmd(char *); char *php_escape_shell_arg(char *); int php_Exec(int type, char *cmd, pval *array, pval *return_value TSRMLS_DC); +#define PHP_EMPTY_EXEC_PARAM { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot execute a blank command"); RETURN_FALSE; } + #endif /* EXEC_H */ |
