bjori           Sat Dec  9 18:00:52 2006 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src    NEWS 
    /php-src/ext/standard       file.h file.c basic_functions.c 
  Log:
  MFH: sys_get_temp_dir()
  
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.417&r2=1.2027.2.547.2.418&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.417 php-src/NEWS:1.2027.2.547.2.418
--- php-src/NEWS:1.2027.2.547.2.417     Sat Dec  9 16:01:29 2006
+++ php-src/NEWS        Sat Dec  9 18:00:51 2006
@@ -3,6 +3,7 @@
 ?? ??? 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)
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/file.h?r1=1.94.2.2.2.2&r2=1.94.2.2.2.3&diff_format=u
Index: php-src/ext/standard/file.h
diff -u php-src/ext/standard/file.h:1.94.2.2.2.2 
php-src/ext/standard/file.h:1.94.2.2.2.3
--- php-src/ext/standard/file.h:1.94.2.2.2.2    Fri Oct 13 09:34:34 2006
+++ php-src/ext/standard/file.h Sat Dec  9 18:00:51 2006
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: file.h,v 1.94.2.2.2.2 2006/10/13 09:34:34 bjori Exp $ */
+/* $Id: file.h,v 1.94.2.2.2.3 2006/12/09 18:00:51 bjori Exp $ */
 
 /* Synced with php 3.0 revision 1.30 1999-06-16 [ssb] */
 
@@ -66,6 +66,7 @@
 #endif
 PHP_NAMED_FUNCTION(php_if_ftruncate);
 PHP_NAMED_FUNCTION(php_if_fstat);
+PHP_FUNCTION(sys_get_temp_dir);
 
 PHP_MINIT_FUNCTION(user_streams);
 
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/file.c?r1=1.409.2.6.2.12&r2=1.409.2.6.2.13&diff_format=u
Index: php-src/ext/standard/file.c
diff -u php-src/ext/standard/file.c:1.409.2.6.2.12 
php-src/ext/standard/file.c:1.409.2.6.2.13
--- php-src/ext/standard/file.c:1.409.2.6.2.12  Wed Nov 22 12:59:49 2006
+++ php-src/ext/standard/file.c Sat Dec  9 18:00:52 2006
@@ -21,7 +21,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: file.c,v 1.409.2.6.2.12 2006/11/22 12:59:49 pajoye Exp $ */
+/* $Id: file.c,v 1.409.2.6.2.13 2006/12/09 18:00:52 bjori Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -2503,6 +2503,14 @@
 /* }}} */
 #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
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/basic_functions.c?r1=1.725.2.31.2.32&r2=1.725.2.31.2.33&diff_format=u
Index: php-src/ext/standard/basic_functions.c
diff -u php-src/ext/standard/basic_functions.c:1.725.2.31.2.32 
php-src/ext/standard/basic_functions.c:1.725.2.31.2.33
--- php-src/ext/standard/basic_functions.c:1.725.2.31.2.32      Mon Dec  4 
18:35:42 2006
+++ php-src/ext/standard/basic_functions.c      Sat Dec  9 18:00:52 2006
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: basic_functions.c,v 1.725.2.31.2.32 2006/12/04 18:35:42 stas Exp $ */
+/* $Id: basic_functions.c,v 1.725.2.31.2.33 2006/12/09 18:00:52 bjori Exp $ */
 
 #include "php.h"
 #include "php_streams.h"
@@ -1399,6 +1399,9 @@
        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
@@ -3762,6 +3765,7 @@
        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}
 };
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to