fix arg by ref handling
[m6w6/ext-http] / php_http_encoding.c
index 30b4c81187acfced1f4bc5032009f92cbc73b2bd..ad08ff50298b87c992e39f1a087dbddf7f504ade 100644 (file)
@@ -1146,6 +1146,7 @@ static PHP_METHOD(HttpDechunkStream, decode)
 
                if ((end_ptr = php_http_encoding_dechunk(str, len, &enc_str, &enc_len))) {
                        if (zlen) {
+                               ZVAL_DEREF(zlen);
                                zval_dtor(zlen);
                                ZVAL_LONG(zlen, str + len - end_ptr);
                        }