diff options
Diffstat (limited to 'ext/standard/file.c')
| -rw-r--r-- | ext/standard/file.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index ac951fa407..84f902d91d 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -266,7 +266,7 @@ PHP_FUNCTION(flock) /* {{{ proto array get_meta_tags(string filename [, int use_include_path]) Extracts all meta tag content attributes from a file and returns an array */ -void php3_get_meta_tags(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(get_meta_tags) { pval *filename, *arg2; FILE *fp; @@ -397,7 +397,7 @@ void php3_get_meta_tags(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto array file(string filename) Read entire file into an array */ -void php3_file(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(file) { pval *filename, *arg2; FILE *fp; @@ -507,7 +507,7 @@ int php3_minit_file(INIT_FUNC_ARGS) /* {{{ proto string tempnam(string dir, string prefix) Create a unique filename in a directory */ -void php3_tempnam(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(tempnam) { pval *arg1, *arg2; char *d; @@ -531,7 +531,7 @@ void php3_tempnam(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int fopen(string filename, string mode [, int use_include_path]) Open a file or a URL and return a file pointer */ -void php3_fopen(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(fopen) { pval *arg1, *arg2, *arg3; FILE *fp; @@ -591,7 +591,7 @@ void php3_fopen(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int fclose(int fp) Close an open file pointer */ -void php3_fclose(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(fclose) { pval *arg1; int id, type; @@ -615,7 +615,7 @@ void php3_fclose(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int popen(string command, string mode) Execute a command and open either a read or a write pipe to it */ -void php3_popen(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(popen) { pval *arg1, *arg2; FILE *fp; @@ -671,7 +671,7 @@ void php3_popen(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int pclose(int fp) Close a file pointer opened by popen() */ -void php3_pclose(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(pclose) { pval *arg1; int id,type; @@ -696,7 +696,7 @@ void php3_pclose(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int feof(int fp) Test for end-of-file on a file pointer */ -void php3_feof(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(feof) { pval *arg1; FILE *fp; @@ -732,7 +732,7 @@ void php3_feof(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int set_socket_blocking(int socket descriptor, int mode) Set blocking/non-blocking mode on a socket */ -void php3_set_socket_blocking(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(set_socket_blocking) { pval *arg1, *arg2; int id, type, block; @@ -794,7 +794,7 @@ void php3_set_socket_blocking(INTERNAL_FUNCTION_PARAMETERS) #if (0 && HAVE_SYS_TIME_H && HAVE_SETSOCKOPT && defined(SO_SNDTIMEO) && defined(SO_RCVTIMEO)) /* this doesn't work, as it appears those properties are read-only :( */ -void php3_set_socket_timeout(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(set_socket_timeout) { pval *socket,*timeout; int type, *sock; @@ -822,7 +822,7 @@ void php3_set_socket_timeout(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto string fgets(int fp, int length) Get a line from file pointer */ -void php3_fgets(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(fgets) { pval *arg1, *arg2; FILE *fp; @@ -872,7 +872,7 @@ void php3_fgets(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto string fgetc(int fp) Get a character from file pointer */ -void php3_fgetc(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(fgetc) { pval *arg1; FILE *fp; int id, type; @@ -914,7 +914,7 @@ void php3_fgetc(INTERNAL_FUNCTION_PARAMETERS) { /* Strip any HTML tags while reading */ /* {{{ proto string fgetss(int fp, int length) Get a line from file pointer and strip HTML tags */ -void php3_fgetss(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(fgetss) { pval *fd, *bytes; FILE *fp; @@ -1038,7 +1038,7 @@ void php3_fgetss(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int fwrite(int fp, string str [, int length]) Binary-safe file write */ -void php3_fwrite(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(fwrite) { pval *arg1, *arg2, *arg3=NULL; FILE *fp; @@ -1100,7 +1100,7 @@ void php3_fwrite(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int rewind(int fp) Rewind the position of a file pointer */ -void php3_rewind(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(rewind) { pval *arg1; int id,type; @@ -1124,7 +1124,7 @@ void php3_rewind(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int ftell(int fp) Get file pointer's read/write position */ -void php3_ftell(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(ftell) { pval *arg1; int id, type; @@ -1149,7 +1149,7 @@ void php3_ftell(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int fseek(int fp, int offset) Seek on a file pointer */ -void php3_fseek(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(fseek) { pval *arg1, *arg2; int ret,id,type; @@ -1186,7 +1186,7 @@ void php3_fseek(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int mkdir(string pathname, int mode) Create a directory */ -void php3_mkdir(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(mkdir) { pval *arg1, *arg2; int ret,mode; @@ -1213,7 +1213,7 @@ void php3_mkdir(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int rmdir(string dirname) Remove a directory */ -void php3_rmdir(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(rmdir) { pval *arg1; int ret; @@ -1238,7 +1238,7 @@ void php3_rmdir(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int readfile(string filename [, int use_include_path]) Output a file or a URL */ -void php3_readfile(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(readfile) { pval *arg1, *arg2; char buf[8192]; @@ -1299,7 +1299,7 @@ void php3_readfile(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int umask([int mask]) Return or change the umask */ -void php3_fileumask(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(fileumask) { pval *arg1; int oldumask; @@ -1327,7 +1327,7 @@ void php3_fileumask(INTERNAL_FUNCTION_PARAMETERS) */ /* {{{ proto int fpassthru(int fp) Output all remaining data from a file pointer */ -void php3_fpassthru(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(fpassthru) { pval *arg1; FILE *fp; @@ -1377,7 +1377,7 @@ void php3_fpassthru(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int rename(string old_name, string new_name) Rename a file */ -void php3_rename(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(rename) { pval *old_arg, *new_arg; char *old_name, *new_name; @@ -1412,7 +1412,7 @@ void php3_rename(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int copy(string source_file, string destination_file) Copy a file */ -void php3_file_copy(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(file_copy) { pval *source, *target; char buffer[8192]; @@ -1467,7 +1467,7 @@ void php3_file_copy(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int fread(int fp, int length) Binary-safe file read */ -void php3_fread(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(fread) { pval *arg1, *arg2; FILE *fp; @@ -1519,7 +1519,7 @@ PHPAPI int php3i_get_le_fp(void) /* {{{ proto array fgetcsv(int fp, int length) get line from file pointer and parse for CSV fields */ -void php3_fgetcsv(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(fgetcsv) { char *temp, *tptr, *bptr; char delimiter = ','; /* allow this to be set as parameter if required in future version? */ |
