php_zlib_filter_data *data;
int status;
+ if (persistent) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "this filter is not safe to use with a persistent stream");
+ return NULL;
+ }
+
/* Create this filter */
data = ecalloc(1, sizeof(php_zlib_filter_data));
case IS_DOUBLE:
case IS_LONG:
tmpzval = &filterparams;
- factory_setlevel:
+factory_setlevel:
/* Set compression level within reason (-1 == default, 0 == none, 1-9 == least to most compression */
SEPARATE_ZVAL(tmpzval);
convert_to_long_ex(tmpzval);