cvs: php4 /pear/Experimental/Cache OutputCompression.php
| From: | Ulf Wendel | Date: | Mon, 23 Apr 2001 18:32:55 +0000 |
| Subject: | cvs: php4 /pear/Experimental/Cache OutputCompression.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-80@lists.php.net to get a copy of this message | ||
uw Mon Apr 23 11:32:55 2001 EDT
Modified files:
/php4/pear/Experimental/Cache OutputCompression.php
Log:
headers can be send even if there's already a setcookie() etc.
Index: php4/pear/Experimental/Cache/OutputCompression.php
diff -u php4/pear/Experimental/Cache/OutputCompression.php:1.2
php4/pear/Experimental/Cache/OutputCompression.php:1.3
--- php4/pear/Experimental/Cache/OutputCompression.php:1.2 Sun Apr 22 12:08:16 2001
+++ php4/pear/Experimental/Cache/OutputCompression.php Mon Apr 23 11:32:55 2001
@@ -23,7 +23,7 @@
*
* Based upon a case study from Christian Stocker and inspired by jpcache.
*
-* @version $Id: OutputCompression.php,v 1.2 2001/04/22 19:08:16 chregu Exp $
+* @version $Id: OutputCompression.php,v 1.3 2001/04/23 18:32:55 uw Exp $
* @author Ulf Wendel <ulf.wendel@phpdoc.de>, Christian Stocker <chregu@nomad.ch>
* @access public
* @package Cache
@@ -219,10 +219,6 @@
*/
function getEncoding() {
global $HTTP_ACCEPT_ENCODING;
-
- // can't send headers any more
- if (headers_sent() || connection_aborted() )
- return "";
// encoding set by user
if ("auto" != $this->encoding)