diff options
| author | foobar <sniper@php.net> | 2003-04-08 14:12:52 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2003-04-08 14:12:52 +0000 |
| commit | a45b4258f0f4f8ccf721a87e41bc35e3e129af9d (patch) | |
| tree | 1613bd4504842e113a10f980f6bcd4cb08e8371d /ext | |
| parent | 2c3dc130274ed8a7f32f71323cfd82ff3662e7d5 (diff) | |
| download | php-git-a45b4258f0f4f8ccf721a87e41bc35e3e129af9d.tar.gz | |
file_set_contents -> file_put_contents
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/standard/basic_functions.c | 2 | ||||
| -rw-r--r-- | ext/standard/file.c | 4 | ||||
| -rw-r--r-- | ext/standard/file.h | 2 |
3 files changed, 4 insertions, 4 deletions
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); |
