From a45b4258f0f4f8ccf721a87e41bc35e3e129af9d Mon Sep 17 00:00:00 2001 From: foobar Date: Tue, 8 Apr 2003 14:12:52 +0000 Subject: [PATCH] file_set_contents -> file_put_contents --- NEWS | 2 +- ext/standard/basic_functions.c | 2 +- ext/standard/file.c | 4 ++-- ext/standard/file.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 796c90cd36..6a139922cb 100644 --- a/NEWS +++ b/NEWS @@ -27,7 +27,7 @@ PHP NEWS - 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 diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 80894af634..26a7cb58a2 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -674,7 +674,7 @@ function_entry basic_functions[] = { 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) diff --git a/ext/standard/file.c b/ext/standard/file.c index 7fab640316..912a1c4fe8 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -465,9 +465,9 @@ PHP_FUNCTION(file_get_contents) } /* }}} */ -/* {{{ 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; diff --git a/ext/standard/file.h b/ext/standard/file.h index 17e07995d2..78c7d42610 100644 --- a/ext/standard/file.h +++ b/ext/standard/file.h @@ -54,7 +54,7 @@ PHP_FUNCTION(unlink); 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); -- 2.50.1