Skip to content

Commit dda2add

Browse files
committed
minor cleanup
1 parent 9c2fd55 commit dda2add

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3328,7 +3328,7 @@ static zend_op_array *preload_compile_file(zend_file_handle *file_handle, int ty
33283328
return op_array;
33293329
}
33303330

3331-
static void preload_sort_classes(void *base, size_t count, size_t siz, compare_func_t compare, swap_func_t swp) /* {{{ */
3331+
static void preload_sort_classes(void *base, size_t count, size_t siz, compare_func_t compare, swap_func_t swp)
33323332
{
33333333
Bucket *b1 = base;
33343334
Bucket *b2;
@@ -3718,9 +3718,11 @@ static void preload_link(void)
37183718
continue;
37193719
}
37203720

3721-
zend_string *key = zend_string_tolower(ce->name);
3722-
zv = zend_hash_set_bucket_key(EG(class_table), (Bucket*)zv, key);
3723-
zend_string_release(key);
3721+
{
3722+
zend_string *key = zend_string_tolower(ce->name);
3723+
zv = zend_hash_set_bucket_key(EG(class_table), (Bucket*)zv, key);
3724+
zend_string_release(key);
3725+
}
37243726

37253727
if (EXPECTED(zv)) {
37263728
/* Set filename & lineno information for inheritance errors */
@@ -4439,7 +4441,7 @@ static int accel_preload(const char *config)
44394441
script->ping_auto_globals_mask = ping_auto_globals_mask;
44404442

44414443
/* Store all functions and classes in a single pseudo-file */
4442-
filename = zend_string_init("$PRELOAD$", strlen("$PRELOAD$"), 0);
4444+
filename = zend_string_init("$PRELOAD$", sizeof("$PRELOAD$") - 1, 0);
44434445
#if ZEND_USE_ABS_CONST_ADDR
44444446
init_op_array(&script->script.main_op_array, ZEND_USER_FUNCTION, 1);
44454447
#else

0 commit comments

Comments
 (0)