+/* {{{ proto void HttpInflateStream::__construct([int flags = 0])
+ *
+ * Creates a new HttpInflateStream object instance.
+ *
+ * Accepts an optional int parameter specifying how to initialize the inflate stream.
+ */
+PHP_METHOD(HttpInflateStream, __construct)
+{
+ long flags = 0;
+
+ SET_EH_THROW_HTTP();
+ if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &flags)) {
+ getObject(http_inflatestream_object, obj);
+
+ if (!obj->stream) {
+ obj->stream = http_encoding_inflate_stream_init(NULL, flags & 0x0fffffff);
+ } else {
+ http_error_ex(HE_WARNING, HTTP_E_ENCODING, "HttpInflateStream cannot be initialized twice");
+ }
+ }
+ SET_EH_NORMAL();
+}
+/* }}} */
+