X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_deflatestream_object.h;h=a49e19ebde63cfd245fb82316aba9c8f20388819;hp=cd5df9736ae7138466dcbbff15aeb38c55b15f17;hb=dc6645f11e20683d92ce30317acf0a3b1ebe0718;hpb=f0bcc141e62c022101d8d19c1d73e7b9ae41d0e9 diff --git a/php_http_deflatestream_object.h b/php_http_deflatestream_object.h index cd5df97..a49e19e 100644 --- a/php_http_deflatestream_object.h +++ b/php_http_deflatestream_object.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2007, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -14,9 +14,10 @@ #ifndef PHP_HTTP_DEFLATESTREAM_OBJECT_H #define PHP_HTTP_DEFLATESTREAM_OBJECT_H -#if defined(ZEND_ENGINE_2) && defined(HTTP_HAVE_ZLIB) +#ifdef HTTP_HAVE_ZLIB +#ifdef ZEND_ENGINE_2 -typedef struct { +typedef struct _http_deflatestream_object_t { zend_object zo; http_encoding_stream *stream; } http_deflatestream_object; @@ -36,10 +37,12 @@ extern zend_object_value _http_deflatestream_object_clone_obj(zval *object TSRML extern void _http_deflatestream_object_free(zend_object *object TSRMLS_DC); PHP_METHOD(HttpDeflateStream, __construct); +PHP_METHOD(HttpDeflateStream, factory); PHP_METHOD(HttpDeflateStream, update); PHP_METHOD(HttpDeflateStream, flush); PHP_METHOD(HttpDeflateStream, finish); +#endif #endif #endif