From: Andrey Hristov Date: Wed, 28 Jul 1999 13:59:35 +0000 (+0000) Subject: Fix link functions problem. X-Git-Tag: php-4.0b2~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5aa3eff94ff121bbbfefa9cb8dd9dbefc0fffa15;p=php Fix link functions problem. --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 0cef5c0eac..9ca142281e 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -172,6 +172,12 @@ function_entry basic_functions[] = { PHP_FE(urldecode, NULL) PHP_FE(rawurlencode, NULL) PHP_FE(rawurldecode, NULL) + + PHP_FE(readlink, NULL) + PHP_FE(linkinfo, NULL) + PHP_FE(symlink, NULL) + PHP_FE(link, NULL) + PHP_FE(unlink, NULL) PHP_FE(exec, second_and_third_args_force_ref) PHP_FE(system, second_arg_force_ref) diff --git a/ext/standard/link.c b/ext/standard/link.c index c6a2e51686..a33253add9 100644 --- a/ext/standard/link.c +++ b/ext/standard/link.c @@ -182,15 +182,6 @@ PHP_FUNCTION(unlink) } /* }}} */ -function_entry link_functions[] = { - PHP_FE(readlink, NULL) - PHP_FE(linkinfo, NULL) - PHP_FE(symlink, NULL) - PHP_FE(link, NULL) - PHP_FE(unlink, NULL) - {NULL, NULL, NULL} -}; - /* * Local variables: diff --git a/main/php.h b/main/php.h index ae74736efa..eee90b356e 100644 --- a/main/php.h +++ b/main/php.h @@ -275,6 +275,7 @@ extern char **environ; extern void phperror(char *error); extern PHPAPI void php3_error(int type, const char *format,...); +extern PHPAPI int php3_write(void *buf, int size); extern PHPAPI int php3_printf(const char *format,...); extern void php3_log_err(char *log_message); extern int Debug(char *format,...);