]> granicus.if.org Git - php/commitdiff
export those functions and fix the build
authorAntony Dovgal <tony2001@php.net>
Wed, 26 Oct 2005 11:37:33 +0000 (11:37 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 26 Oct 2005 11:37:33 +0000 (11:37 +0000)
ext/standard/exec.c
ext/standard/exec.h

index 3619e738504e62ce4597d3b71fbaaf7f31989cd9..ebf912960b9e9ef9b0452f500873ec72205d09ed 100644 (file)
@@ -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;
 
index f4c5de599418d1d1f220cb8f290785ab832fba59..51132e09dd95eee3d31fb4e0eed66b35254272be 100644 (file)
@@ -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; }