cvs: pear /HTTP_Download Download.php
| From: | Michael Wallner | Date: | Thu, 20 Jan 2005 15:28:56 +0000 |
| Subject: | cvs: pear /HTTP_Download Download.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-28702@lists.php.net to get a copy of this message | ||
mike Thu Jan 20 10:28:56 2005 EDT
Modified files:
/pear/HTTP_Download Download.php
Log:
* fixed safe_mode warning
http://cvs.php.net/diff.php/pear/HTTP_Download/Download.php?r1=1.56&r2=1.57&ty=u
Index: pear/HTTP_Download/Download.php
diff -u pear/HTTP_Download/Download.php:1.56 pear/HTTP_Download/Download.php:1.57
--- pear/HTTP_Download/Download.php:1.56 Wed Jan 19 05:20:34 2005
+++ pear/HTTP_Download/Download.php Thu Jan 20 10:28:56 2005
@@ -11,7 +11,7 @@
// | Copyright (c) 2003-2004 Michael Wallner <mike@iworks.at> |
// +----------------------------------------------------------------------+
//
-// $Id: Download.php,v 1.56 2005/01/19 10:20:34 mike Exp $
+// $Id: Download.php,v 1.57 2005/01/20 15:28:56 mike Exp $
/**
* Manage HTTP Downloads.
@@ -93,7 +93,7 @@
* if you want to send already gzipped data!
*
* @access public
- * @version $Revision: 1.56 $
+ * @version $Revision: 1.57 $
*/
class HTTP_Download
{
@@ -607,7 +607,9 @@
);
}
- set_time_limit(0);
+ if (!ini_get('safe_mode')) {
+ @set_time_limit(0);
+ }
if ($autoSetContentDisposition &&
!isset($this->headers['Content-Disposition'])) {