cvs: php4 /ext/zlib CREDITS zlib.c
| From: | Zeev Suraski | Date: | Thu, 16 Aug 2001 23:34:25 +0000 |
| Subject: | cvs: php4 /ext/zlib CREDITS zlib.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6900@lists.php.net to get a copy of this message | ||
zeev Thu Aug 16 19:34:25 2001 EDT
Modified files:
/php4/ext/zlib CREDITS zlib.c
Log:
Send Content-Length if we're sending just one chunk
Index: php4/ext/zlib/CREDITS
diff -u php4/ext/zlib/CREDITS:1.1 php4/ext/zlib/CREDITS:1.2
--- php4/ext/zlib/CREDITS:1.1 Mon Nov 20 05:31:40 2000
+++ php4/ext/zlib/CREDITS Thu Aug 16 19:34:25 2001
@@ -1,2 +1,2 @@
Zlib
-Rasmus Lerdorf, Stefan Roehrich
+Rasmus Lerdorf, Stefan Roehrich, Zeev Suraski, Jade Nicoletti
Index: php4/ext/zlib/zlib.c
diff -u php4/ext/zlib/zlib.c:1.94 php4/ext/zlib/zlib.c:1.95
--- php4/ext/zlib/zlib.c:1.94 Sun Aug 5 23:50:52 2001
+++ php4/ext/zlib/zlib.c Thu Aug 16 19:34:25 2001
@@ -14,9 +14,11 @@
+----------------------------------------------------------------------+
| Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
| Stefan Röhrich <sr@linux.de> |
+ | Zeev Suraski <zeev@zend.com> |
+ | Jade Nicoletti <nicoletti@nns.ch> |
+----------------------------------------------------------------------+
*/
-/* $Id: zlib.c,v 1.94 2001/08/06 03:50:52 sas Exp $ */
+/* $Id: zlib.c,v 1.95 2001/08/16 23:34:25 zeev Exp $ */
#define IS_EXT_MODULE
#ifdef HAVE_CONFIG_H
@@ -1200,13 +1202,11 @@
if (return_original) {
zval_dtor(return_value);
-#if 0
- } else {
+ } else if (do_start && do_end) {
char lenbuf[64];
sprintf(lenbuf,"Content-Length: %d",Z_STRLEN_P(return_value));
sapi_add_header(lenbuf,strlen(lenbuf), 1);
-#endif
}
} else {
return_original = 1;