From: Antony Dovgal Date: Wed, 26 Oct 2005 11:37:33 +0000 (+0000) Subject: export those functions and fix the build X-Git-Tag: php-4.4.1~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51ecf50b42214e0836ece21504db284fc6235b65;p=php export those functions and fix the build --- diff --git a/ext/standard/exec.c b/ext/standard/exec.c index 3619e73850..ebf912960b 100644 --- a/ext/standard/exec.c +++ b/ext/standard/exec.c @@ -398,7 +398,7 @@ PHP_FUNCTION(passthru) *NOT* safe for binary strings */ -char *php_escape_shell_cmd(char *str) { +PHPAPI char *php_escape_shell_cmd(char *str) { register int x, y, l; char *cmd; char *p = NULL; @@ -462,7 +462,7 @@ char *php_escape_shell_cmd(char *str) { /* {{{ php_escape_shell_arg */ -char *php_escape_shell_arg(char *str) { +PHPAPI *php_escape_shell_arg(char *str) { int x, y, l; char *cmd; diff --git a/ext/standard/exec.h b/ext/standard/exec.h index f4c5de5994..51132e09dd 100644 --- a/ext/standard/exec.h +++ b/ext/standard/exec.h @@ -31,8 +31,8 @@ PHP_FUNCTION(proc_open); PHP_FUNCTION(proc_close); PHP_MINIT_FUNCTION(proc_open); -char *php_escape_shell_cmd(char *); -char *php_escape_shell_arg(char *); +PHPAPI char *php_escape_shell_cmd(char *); +PHPAPI *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; }