- ditch the 1 byte leak
authorMichael Wallner <mike@php.net>
Mon, 17 Oct 2005 14:43:32 +0000 (14:43 +0000)
committerMichael Wallner <mike@php.net>
Mon, 17 Oct 2005 14:43:32 +0000 (14:43 +0000)
package2.xml
phpstr/phpstr.c

index 6396dd228c5737370ec4f2a1263085b0aab852b9..7e418011876dfc27e806f91c593e1493a6d52bad 100644 (file)
@@ -30,8 +30,8 @@
  </lead>
  <date>2005-00-00</date>
  <version>
-  <release>0.15.0</release>
-  <api>0.14.0</api>
+  <release>0.16.0</release>
+  <api>0.16.0</api>
  </version>
  <stability>
   <release>beta</release>
  </stability>
  <license uri="http://www.php.net/license">PHP License</license>
  <notes><![CDATA[
-+ Updated documentation (a lot)
-+ Added optional third parameter to HttpRequest::__construct() accepting an array with options
-+ Added compression functions gzencode/gzdecode, deflate/inflate, compress/uncompress
-+ Added http_support() for probing features that depend on external libraries
-
-- Renamed http_absolute_uri() to http_build_uri() (complements with http_build_query())
-- Changed the signature of the negotiator to fill the second parameter with the results array
-
-* Fixed several ETag issues
-* Fixed HttpRequestPools detach() and attach() methods when the iterator is active
-* Fixed parsing messages with Content-Range headers
-* Fixed parsing messages with another Transfer-Encoding header value than chunked
++ Added ext/zlib independant GZIP support
 ]]></notes>
  <contents>
   <dir name="/">
     <file role="test" name="HttpResponse_004.phpt"/>
     <file role="test" name="INI_001.phpt"/>
     <file role="test" name="parse_headers_001.phpt"/>
-    <file role="test" name="parse_message_001.phpt"/>
+    <file role="test" name="parse_message_002.phpt"/>
+    <file role="test" name="parse_message_003.phpt"/>
+    <file role="test" name="parse_message_004.phpt"/>
     <file role="test" name="redirect_001.phpt"/>
     <file role="test" name="redirect_001_logging.phpt"/>
     <file role="test" name="redirect_002.phpt"/>
index 45c9e2632bb6293a10765d59f6dd941e598b4335..c0d9543f3d3e4a7e5b11b9d20b3aee68f3632c04 100644 (file)
@@ -284,15 +284,16 @@ PHPSTR_API void phpstr_chunked_output(phpstr **s, const char *data, size_t data_
        
        while (got = phpstr_chunk_buffer(s, data, data_len, &chunk, chunk_len)) {
                passthru(chunk, got TSRMLS_CC);
-               efree(chunk);
-               data = NULL;
-               data_len = 0;
                if (!chunk_len) {
                        /*      we already got the last chunk,
                                and freed all resources */
                        break;
                }
+               data = NULL;
+               data_len = 0;
+               STR_SET(chunk, NULL);
        }
+       STR_FREE(chunk);
 }
 
 /*