tony2001 Wed Oct 26 07:37:34 2005 EDT Modified files: (Branch: PHP_4_4) /php-src/ext/standard exec.c exec.h Log: export those functions and fix the build http://cvs.php.net/diff.php/php-src/ext/standard/exec.c?r1=1.84.2.15&r2=1.84.2.15.2.1&ty=u Index: php-src/ext/standard/exec.c diff -u php-src/ext/standard/exec.c:1.84.2.15 php-src/ext/standard/exec.c:1.84.2.15.2.1 --- php-src/ext/standard/exec.c:1.84.2.15 Wed Nov 10 15:28:27 2004 +++ php-src/ext/standard/exec.c Wed Oct 26 07:37:33 2005 @@ -15,7 +15,7 @@ | Author: Rasmus Lerdorf | +----------------------------------------------------------------------+ */ -/* $Id: exec.c,v 1.84.2.15 2004/11/10 20:28:27 wez Exp $ */ +/* $Id: exec.c,v 1.84.2.15.2.1 2005/10/26 11:37:33 tony2001 Exp $ */ #include <stdio.h> #include "php.h" @@ -398,7 +398,7 @@ *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 @@ /* {{{ php_escape_shell_arg */ -char *php_escape_shell_arg(char *str) { +PHPAPI *php_escape_shell_arg(char *str) { int x, y, l; char *cmd; http://cvs.php.net/diff.php/php-src/ext/standard/exec.h?r1=1.15.2.1&r2=1.15.2.1.8.1&ty=u Index: php-src/ext/standard/exec.h diff -u php-src/ext/standard/exec.h:1.15.2.1 php-src/ext/standard/exec.h:1.15.2.1.8.1 --- php-src/ext/standard/exec.h:1.15.2.1 Tue Dec 31 11:35:27 2002 +++ php-src/ext/standard/exec.h Wed Oct 26 07:37:33 2005 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: exec.h,v 1.15.2.1 2002/12/31 16:35:27 sebastian Exp $ */ +/* $Id: exec.h,v 1.15.2.1.8.1 2005/10/26 11:37:33 tony2001 Exp $ */ #ifndef EXEC_H #define EXEC_H @@ -31,8 +31,8 @@ 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; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php