[prev in list] [next in list] [prev in thread] [next in thread]
List: pecl-cvs
Subject: [PECL-CVS] cvs: pecl /uploadprogress uploadprogress.c
From: "Christian Stocker" <chregu () php ! net>
Date: 2009-05-26 15:11:32
Message-ID: cvschregu1243350692 () cvsserver
[Download RAW message or body]
chregu Tue May 26 15:11:32 2009 UTC
Modified files:
/pecl/uploadprogress uploadprogress.c
Log:
apply a patch for getting the tmp directory of the system if defined
from http://pecl.php.net/bugs/bug.php?id=16570
thanks go to guenter@php.net
http://cvs.php.net/viewvc.cgi/pecl/uploadprogress/uploadprogress.c?r1=1.20&r2=1.21&diff_format=u
Index: pecl/uploadprogress/uploadprogress.c
diff -u pecl/uploadprogress/uploadprogress.c:1.20 \
pecl/uploadprogress/uploadprogress.c:1.21
--- pecl/uploadprogress/uploadprogress.c:1.20 Thu Mar 12 18:33:43 2009
+++ pecl/uploadprogress/uploadprogress.c Tue May 26 15:11:31 2009
@@ -18,13 +18,19 @@
+----------------------------------------------------------------------+
*/
-/* $Id: uploadprogress.c,v 1.20 2009/03/12 18:33:43 chregu Exp $ */
+/* $Id: uploadprogress.c,v 1.21 2009/05/26 15:11:31 chregu Exp $ */
#include "php_uploadprogress.h"
#include "rfc1867.h"
#if HAVE_UPLOADPROGRESS
+#ifdef P_tmpdir
+#define TMPDIR P_tmpdir
+#else
+#define TMPDIR "/tmp"
+#endif
+
/* {{{ uploadprogress_functions[] */
function_entry uploadprogress_functions[] = {
PHP_FE(uploadprogress_get_info, NULL)
@@ -34,9 +40,9 @@
/* }}} */
PHP_INI_BEGIN()
-PHP_INI_ENTRY("uploadprogress.file.filename_template", "/tmp/upt_%s.txt", \
PHP_INI_ALL, NULL)
-PHP_INI_ENTRY("uploadprogress.file.contents_template", "/tmp/upload_contents_%s", \
PHP_INI_ALL, NULL)
-PHP_INI_ENTRY("uploadprogress.get_contents", "0", \
PHP_INI_ALL, NULL) +PHP_INI_ENTRY("uploadprogress.file.filename_template", \
TMPDIR"/upt_%s.txt", PHP_INI_ALL, NULL) \
+PHP_INI_ENTRY("uploadprogress.file.contents_template", TMPDIR"/upload_contents_%s", \
PHP_INI_ALL, NULL) +PHP_INI_ENTRY("uploadprogress.get_contents", "0", \
PHP_INI_ALL, NULL) PHP_INI_END()
/* {{{ uploadprogress_module_entry
--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic