zend_string *dest;
size_t source_len;
int error;
- zend_long small = 0;
+ zend_bool small = 0;
#ifdef PHP_WIN32
unsigned __int64 size = 0;
#else
#endif
bz_stream bzs;
- if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "s|l", &source, &source_len, &small)) {
+ if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "s|b", &source, &source_len, &small)) {
RETURN_THROWS();
}
function bzcompress(string $data, int $block_size = 4, int $work_factor = 0): string|int {}
-function bzdecompress(string $data, int $use_less_memory = 0): string|int|false {}
+function bzdecompress(string $data, bool $use_less_memory = false): string|int|false {}
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 305cbe9825a0d62ad966c09a50c53dd6cc49011e */
+ * Stub hash: 6953f91be31777e4d4e3652f75eec6d968cf636a */
ZEND_BEGIN_ARG_INFO_EX(arginfo_bzopen, 0, 0, 2)
ZEND_ARG_INFO(0, file)
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bzdecompress, 0, 1, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, use_less_memory, IS_LONG, 0, "0")
+ ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, use_less_memory, _IS_BOOL, 0, "false")
ZEND_END_ARG_INFO()
var_dump(bzdecompress($data3));
var_dump(bzdecompress($data3,1));
-var_dump(bzdecompress($data, -1));
var_dump(bzdecompress($data, 0));
-var_dump(bzdecompress($data, 1000));
+var_dump(bzdecompress($data, 1));
var_dump(bzdecompress($data));
var_dump(bzdecompress($data2));
int(-5)
int(-5)
int(-5)
-bool(false)
string(110) "Life it seems, will fade away
Drifting further everyday
Getting lost within myself
Nothing matters no one else"
-bool(false)
+string(110) "Life it seems, will fade away
+Drifting further everyday
+Getting lost within myself
+Nothing matters no one else"
string(110) "Life it seems, will fade away
Drifting further everyday
Getting lost within myself