Skip to content

Commit 9031567

Browse files
committed
1 -> true
1 parent 9fba6b3 commit 9031567

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Zend/zend_API.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2952,7 +2952,7 @@ void zend_convert_internal_arg_info_type(zend_type *type)
29522952

29532953
if (num_types == 1) {
29542954
/* Simple class type */
2955-
zend_string *str = zend_string_init_interned(class_name, strlen(class_name), 1);
2955+
zend_string *str = zend_string_init_interned(class_name, strlen(class_name), true);
29562956
zend_alloc_ce_cache(str);
29572957
ZEND_TYPE_SET_PTR(*type, str);
29582958
type->type_mask |= _ZEND_TYPE_NAME_BIT;
@@ -2967,7 +2967,7 @@ void zend_convert_internal_arg_info_type(zend_type *type)
29672967
uint32_t j = 0;
29682968
while (true) {
29692969
const char *end = strchr(start, '|');
2970-
zend_string *str = zend_string_init_interned(start, end ? end - start : strlen(start), 1);
2970+
zend_string *str = zend_string_init_interned(start, end ? end - start : strlen(start), true);
29712971
zend_alloc_ce_cache(str);
29722972
list->types[j] = (zend_type) ZEND_TYPE_INIT_CLASS(str, 0, 0);
29732973
if (!end) {
@@ -2994,9 +2994,9 @@ void zend_convert_internal_arg_info_type(zend_type *type)
29942994
void zend_convert_internal_arg_info(zend_arg_info *new_arg_info, const zend_internal_arg_info *arg_info, bool is_return_info)
29952995
{
29962996
if (!is_return_info) {
2997-
new_arg_info->name = zend_string_init_interned(arg_info->name, strlen(arg_info->name), 1);
2997+
new_arg_info->name = zend_string_init_interned(arg_info->name, strlen(arg_info->name), true);
29982998
if (arg_info->default_value) {
2999-
new_arg_info->default_value = zend_string_init_interned(arg_info->default_value, strlen(arg_info->default_value), 1);
2999+
new_arg_info->default_value = zend_string_init_interned(arg_info->default_value, strlen(arg_info->default_value), true);
30003000
} else {
30013001
new_arg_info->default_value = NULL;
30023002
}

Zend/zend_closures.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ void zend_closure_bind_var_ex(zval *closure_zv, uint32_t offset, zval *val) /* {
915915
void zend_closure_startup(void)
916916
{
917917
/* __call and __callStatic name the arguments "$arguments" in the docs. */
918-
trampoline_arg_info[0].name = zend_string_init_interned("arguments", strlen("arguments"), 1);
918+
trampoline_arg_info[0].name = zend_string_init_interned("arguments", strlen("arguments"), true);
919919
trampoline_arg_info[0].type = (zend_type)ZEND_TYPE_INIT_CODE(IS_MIXED, false, _ZEND_ARG_INFO_FLAGS(false, 1, 0));
920920
trampoline_arg_info[0].default_value = NULL;
921921
}

Zend/zend_opcode.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,12 @@ void zend_free_internal_arg_info(zend_internal_function *function) {
135135
for (i = 0 ; i < num_args; i++) {
136136
bool is_return_info = i == 0;
137137
if (!is_return_info) {
138-
zend_string_release_ex(arg_info[i].name, 1);
138+
zend_string_release_ex(arg_info[i].name, true);
139139
if (arg_info[i].default_value) {
140-
zend_string_release_ex(arg_info[i].default_value, 1);
140+
zend_string_release_ex(arg_info[i].default_value, true);
141141
}
142142
}
143-
zend_type_release(arg_info[i].type, /* persistent */ 1);
143+
zend_type_release(arg_info[i].type, /* persistent */ true);
144144
}
145145

146146
free(arg_info);

ext/pdo/pdo_dbh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,7 @@ bool pdo_hash_methods(pdo_dbh_object_t *dbh_obj, int kind)
13771377
num_arg_info++;
13781378
}
13791379

1380-
zend_arg_info *arg_info = safe_pemalloc(num_arg_info, sizeof(zend_arg_info), 0, 1);
1380+
zend_arg_info *arg_info = safe_pemalloc(num_arg_info, sizeof(zend_arg_info), 0, true);
13811381
for (uint32_t i = 0; i < num_arg_info; i++) {
13821382
zend_convert_internal_arg_info(&arg_info[i], &funcs->arg_info[i], i == 0);
13831383
}

0 commit comments

Comments
 (0)