* use the resource factory
[m6w6/ext-http] / php_http_encoding.c
index 07a026d3fe532de0cd44cd9c1a60b6c95106637a..b7c994bf928a78d2d652ad45a378af409a2b99f5 100644 (file)
@@ -486,7 +486,7 @@ static STATUS inflate_update(php_http_encoding_stream_t *s, const char *data, si
        
        /* append input to buffer */
        php_http_buffer_append(PHP_HTTP_BUFFER(ctx->opaque), data, data_len);
-       
+
 retry_raw_inflate:
        ctx->next_in = (Bytef *) PHP_HTTP_BUFFER_VAL(ctx->opaque);
        ctx->avail_in = PHP_HTTP_BUFFER_LEN(ctx->opaque);
@@ -950,11 +950,11 @@ void php_http_encoding_stream_object_free(void *object TSRMLS_DC)
 
 PHP_METHOD(HttpEncodingStream, __construct)
 {
-       with_error_handling(EH_THROW, PHP_HTTP_EX_CE(runtime)) {
+       with_error_handling(EH_THROW, php_http_exception_class_entry) {
                long flags = 0;
 
                if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &flags)) {
-                       with_error_handling(EH_THROW, PHP_HTTP_EX_CE(encoding)) {
+                       with_error_handling(EH_THROW, php_http_exception_class_entry) {
                                php_http_encoding_stream_object_t *obj = zend_object_store_get_object(getThis() TSRMLS_CC);
 
                                if (!obj->stream) {