cvs: php4 / NEWS /ext/standard basic_functions.c file.c file.h

From: Date: Tue, 08 Apr 2003 14:12:52 +0000
Subject: cvs: php4 / NEWS /ext/standard basic_functions.c file.c file.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20167@lists.php.net to get a copy of this message
sniper Tue Apr 8 10:12:52 2003 EDT Modified files: /php4 NEWS /php4/ext/standard basic_functions.c file.c file.h Log: file_set_contents -> file_put_contents Index: php4/NEWS diff -u php4/NEWS:1.1395 php4/NEWS:1.1396 --- php4/NEWS:1.1395 Mon Apr 7 19:20:29 2003 +++ php4/NEWS Tue Apr 8 10:12:52 2003 @@ -27,7 +27,7 @@ - Added optional parameter to get_browser() to make it return an array. (Jay) - Added optional parameter to openssl_sign() to specify the hashing algorithm. (scott@planetscott.ca, Derick) -- Added file_set_contents() function. (Sterling) +- Added file_put_contents() function. (Sterling) - Added "mail_force_extra_paramaters" php.ini option which forces the addition of the specified parameters to be passed as extra parameters to the sendmail binary. These parameters will always replace the value of the 5th parameter Index: php4/ext/standard/basic_functions.c diff -u php4/ext/standard/basic_functions.c:1.605 php4/ext/standard/basic_functions.c:1.606 --- php4/ext/standard/basic_functions.c:1.605 Fri Apr 4 00:21:03 2003 +++ php4/ext/standard/basic_functions.c Tue Apr 8 10:12:52 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: basic_functions.c,v 1.605 2003/04/04 05:21:03 pollita Exp $ */ +/* $Id: basic_functions.c,v 1.606 2003/04/08 14:12:52 sniper Exp $ */ #include "php.h" #include "php_streams.h" @@ -674,7 +674,7 @@ PHP_STATIC_FE("tmpfile", php_if_tmpfile, NULL) PHP_FE(file, NULL) PHP_FE(file_get_contents, NULL) - PHP_FE(file_set_contents, NULL) + PHP_FE(file_put_contents, NULL) PHP_FE(stream_select, first_through_third_args_force_ref) PHP_FE(stream_context_create, NULL) PHP_FE(stream_context_set_params, NULL) Index: php4/ext/standard/file.c diff -u php4/ext/standard/file.c:1.330 php4/ext/standard/file.c:1.331 --- php4/ext/standard/file.c:1.330 Mon Apr 7 20:02:47 2003 +++ php4/ext/standard/file.c Tue Apr 8 10:12:52 2003 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: file.c,v 1.330 2003/04/08 00:02:47 pollita Exp $ */ +/* $Id: file.c,v 1.331 2003/04/08 14:12:52 sniper Exp $ */ /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */ @@ -465,9 +465,9 @@ } /* }}} */ -/* {{{ proto string file_set_contents(string file, string data) +/* {{{ proto string file_put_contents(string file, string data) Write/Create a file with contents data */ -PHP_FUNCTION(file_set_contents) +PHP_FUNCTION(file_put_contents) { php_stream *stream; char *filename, *data; Index: php4/ext/standard/file.h diff -u php4/ext/standard/file.h:1.80 php4/ext/standard/file.h:1.81 --- php4/ext/standard/file.h:1.80 Wed Mar 12 01:47:34 2003 +++ php4/ext/standard/file.h Tue Apr 8 10:12:52 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: file.h,v 1.80 2003/03/12 06:47:34 sterling Exp $ */ +/* $Id: file.h,v 1.81 2003/04/08 14:12:52 sniper Exp $ */ /* Synced with php 3.0 revision 1.30 1999-06-16 [ssb] */ @@ -54,7 +54,7 @@ PHP_FUNCTION(copy); PHP_FUNCTION(file); PHP_FUNCTION(file_get_contents); -PHP_FUNCTION(file_set_contents); +PHP_FUNCTION(file_put_contents); PHP_FUNCTION(get_meta_tags); PHP_FUNCTION(flock); PHP_FUNCTION(fd_set);

« previous php.cvs (#20167) next »