Browse Source

Name change: php_get_tmpdir() renamed to sys_get_temp_dir()

migration/RELEASE_1_0_0
Hartmut Holzgraefe 20 years ago
parent
commit
205bdeda41
  1. 2
      NEWS
  2. 2
      ext/standard/basic_functions.c
  3. 4
      ext/standard/file.c
  4. 2
      ext/standard/file.h

2
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)

2
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}
};

4
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);
}

2
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);

Loading…
Cancel
Save