summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2006-05-19 10:44:34 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2006-05-19 10:44:34 +0000
commit205bdeda417d72db9b38fcbb7651e9af5aa72749 (patch)
tree16d1e3a84f84a98d8affc2e83ea63165e02aa8bb
parent1417222aee62a8bdea9c4e74e13ca752cb183f29 (diff)
downloadphp-git-205bdeda417d72db9b38fcbb7651e9af5aa72749.tar.gz
Name change: php_get_tmpdir() renamed to sys_get_temp_dir()
-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 f12fc06814..0f29091882 100644
--- a/NEWS
+++ b/NEWS
@@ -52,7 +52,7 @@ PHP NEWS
defined using reflection API. (Johannes)
- Added second optional parameter to stream_context_create() to set params
during context creation. (Sara)
-- Added php_get_tmpdir() function that returns the default directory for
+- Added sys_get_temp_dir() function that returns the default directory for
temporary files (as requested in bug #35380). (Hartmut)
- Fixed bug #36630 (umask not reset at the end of the request). (Ilia)
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 32643ea3b8..2841caf70f 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -846,7 +846,7 @@ zend_function_entry basic_functions[] = {
PHP_FE(output_add_rewrite_var, NULL)
PHP_FE(output_reset_rewrite_vars, NULL)
- PHP_FE(php_get_tmpdir, NULL)
+ PHP_FE(sys_get_temp_dir, NULL)
{NULL, NULL, NULL}
};
diff --git a/ext/standard/file.c b/ext/standard/file.c
index adf86f2cda..121ba395ad 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -2555,9 +2555,9 @@ PHP_FUNCTION(fnmatch)
/* }}} */
#endif
-/* {{{ proto string php_get_tmpdir()
+/* {{{ proto string sys_get_temp_dir()
Returns directory path used for temporary files */
-PHP_FUNCTION(php_get_tmpdir)
+PHP_FUNCTION(sys_get_temp_dir)
{
RETURN_STRING((char *)php_get_temporary_directory(), 1);
}
diff --git a/ext/standard/file.h b/ext/standard/file.h
index 38ae583d7d..a88e360836 100644
--- a/ext/standard/file.h
+++ b/ext/standard/file.h
@@ -66,7 +66,7 @@ PHP_FUNCTION(fnmatch);
#endif
PHP_NAMED_FUNCTION(php_if_ftruncate);
PHP_NAMED_FUNCTION(php_if_fstat);
-PHP_FUNCTION(php_get_tmpdir);
+PHP_FUNCTION(sys_get_temp_dir);
PHP_MINIT_FUNCTION(user_streams);