Lines Matching refs:level
386 static zend_string *php_zlib_encode(const char *in_buf, size_t in_len, int encoding, int level) in php_zlib_encode() argument
396 …if (Z_OK == (status = deflateInit2(&Z, level, Z_DEFLATED, encoding, MAX_MEM_LEVEL, Z_DEFAULT_STRAT… in php_zlib_encode()
707 zend_long level = -1; \
710 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "S|ll", &in, &level, &encoding)) { \
714 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "Sl|l", &in, &encoding, &level)) { \
718 if (level < -1 || level > 9) { \
731 if ((out = php_zlib_encode(ZSTR_VAL(in), ZSTR_LEN(in), encoding, level)) == NULL) { \
1087 zend_long encoding, level = -1, memory = 8, window = 15, strategy = Z_DEFAULT_STRATEGY; in PHP_FUNCTION() local
1098 level = zval_get_long(option_buffer); in PHP_FUNCTION()
1100 if (level < -1 || level > 9) { in PHP_FUNCTION()
1162 if (deflateInit2(&ctx->Z, level, Z_DEFLATED, encoding, memory, strategy) != Z_OK) { in PHP_FUNCTION()