?>
--EXPECTF--
-Warning: inflate_init() expects exactly 1 parameter, 0 given in %s on line %d
+Warning: inflate_init() expects at least 1 parameter, 0 given in %s on line %d
NULL
Warning: inflate_init(): encoding mode must be ZLIB_ENCODING_RAW, ZLIB_ENCODING_GZIP or ZLIB_ENCODING_DEFLATE in %s on line %d
zend_long encoding, window = 15;
char *dict = NULL;
size_t dictlen = 0;
- HashTable *options;
+ HashTable *options = NULL;
zval *option_buffer;
if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "l|H", &encoding, &options)) {
if (encoding < 0) {
encoding += 15 - window;
} else {
- encoding &= window;
+ encoding -= 15 - window;
}
if (Z_OK == inflateInit2(ctx, encoding)) {
zend_long encoding, level = -1, memory = 8, window = 15, strategy = Z_DEFAULT_STRATEGY;
char *dict = NULL;
size_t dictlen = 0;
- HashTable *options = 0;
+ HashTable *options = NULL;
zval *option_buffer;
if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "l|H", &encoding, &options)) {
if (encoding < 0) {
encoding += 15 - window;
} else {
- encoding &= window;
+ encoding -= 15 - window;
}
if (Z_OK == deflateInit2(ctx, level, Z_DEFLATED, encoding, memory, strategy)) {