summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-04-08 14:12:52 +0000
committerfoobar <sniper@php.net>2003-04-08 14:12:52 +0000
commita45b4258f0f4f8ccf721a87e41bc35e3e129af9d (patch)
tree1613bd4504842e113a10f980f6bcd4cb08e8371d
parent2c3dc130274ed8a7f32f71323cfd82ff3662e7d5 (diff)
downloadphp-git-a45b4258f0f4f8ccf721a87e41bc35e3e129af9d.tar.gz
file_set_contents -> file_put_contents
-rw-r--r--NEWS2
-rw-r--r--ext/standard/basic_functions.c2
-rw-r--r--ext/standard/file.c4
-rw-r--r--ext/standard/file.h2
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);