summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-10-26 11:37:33 +0000
committerAntony Dovgal <tony2001@php.net>2005-10-26 11:37:33 +0000
commit51ecf50b42214e0836ece21504db284fc6235b65 (patch)
treeab67694414970b47272dfe8d83e1b22b7f14d89c
parent3848a2768925c9ad311b5fea2f395c40ba0969b8 (diff)
downloadphp-git-51ecf50b42214e0836ece21504db284fc6235b65.tar.gz
export those functions and fix the build
-rw-r--r--ext/standard/exec.c4
-rw-r--r--ext/standard/exec.h4
2 files changed, 4 insertions, 4 deletions
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; }