Skip to content

Commit 5aa12d2

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: minor cleanup
2 parents 31dd635 + dda2add commit 5aa12d2

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
@@ -3390,7 +3390,7 @@ static zend_op_array *preload_compile_file(zend_file_handle *file_handle, int ty
33903390
return op_array;
33913391
}
33923392

3393-
static void preload_sort_classes(void *base, size_t count, size_t siz, compare_func_t compare, swap_func_t swp) /* {{{ */
3393+
static void preload_sort_classes(void *base, size_t count, size_t siz, compare_func_t compare, swap_func_t swp)
33943394
{
33953395
Bucket *b1 = base;
33963396
Bucket *b2;
@@ -3785,9 +3785,11 @@ static void preload_link(void)
37853785
continue;
37863786
}
37873787

3788-
zend_string *key = zend_string_tolower(ce->name);
3789-
zv = zend_hash_set_bucket_key(EG(class_table), (Bucket*)zv, key);
3790-
zend_string_release(key);
3788+
{
3789+
zend_string *key = zend_string_tolower(ce->name);
3790+
zv = zend_hash_set_bucket_key(EG(class_table), (Bucket*)zv, key);
3791+
zend_string_release(key);
3792+
}
37913793

37923794
if (EXPECTED(zv)) {
37933795
/* Set filename & lineno information for inheritance errors */
@@ -4509,7 +4511,7 @@ static int accel_preload(const char *config)
45094511
script->ping_auto_globals_mask = ping_auto_globals_mask;
45104512

45114513
/* Store all functions and classes in a single pseudo-file */
4512-
filename = zend_string_init("$PRELOAD$", strlen("$PRELOAD$"), 0);
4514+
filename = zend_string_init("$PRELOAD$", sizeof("$PRELOAD$") - 1, 0);
45134515
#if ZEND_USE_ABS_CONST_ADDR
45144516
init_op_array(&script->script.main_op_array, ZEND_USER_FUNCTION, 1);
45154517
#else

0 commit comments

Comments
 (0)