From 205bdeda417d72db9b38fcbb7651e9af5aa72749 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Fri, 19 May 2006 10:44:34 +0000 Subject: [PATCH] Name change: php_get_tmpdir() renamed to sys_get_temp_dir() --- 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 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); -- 2.50.1