?? ??? 2007, PHP 5.2.1
- Added a meta tag to phpinfo() output to prevent search engines from indexing
the page. (Ilia)
+- Added new function, sys_get_temp_dir(). (Hartmut)
- Added missing object support to file_put_contents(). (Ilia)
- Changed double-to-string utilities to use BSD implementation. (Dmitry, Tony)
- Updated bundled libcURL to version 7.16.0 in the Windows distro. (Edin)
ZEND_ARG_INFO(0, flags)
ZEND_END_ARG_INFO()
#endif
+static
+ZEND_BEGIN_ARG_INFO(arginfo_sys_get_temp_dir, 0)
+ZEND_END_ARG_INFO()
/* }}} */
/* {{{ filestat.c */
static
PHP_FE(output_add_rewrite_var, arginfo_output_add_rewrite_var)
PHP_FE(output_reset_rewrite_vars, arginfo_output_reset_rewrite_vars)
+ PHP_FE(sys_get_temp_dir, arginfo_sys_get_temp_dir)
{NULL, NULL, NULL}
};
/* }}} */
#endif
+/* {{{ proto string sys_get_temp_dir()
+ Returns directory path used for temporary files */
+PHP_FUNCTION(sys_get_temp_dir)
+{
+ RETURN_STRING((char *)php_get_temporary_directory(), 1);
+}
+/* }}} */
+
/*
* Local variables:
* tab-width: 4
#endif
PHP_NAMED_FUNCTION(php_if_ftruncate);
PHP_NAMED_FUNCTION(php_if_fstat);
+PHP_FUNCTION(sys_get_temp_dir);
PHP_MINIT_FUNCTION(user_streams);