Skip to content

Commit

Permalink
Cleanup (move preload_shutdown() call to better place)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Oct 25, 2018
1 parent 26587a9 commit 4f57c1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/opcache/ZendAccelerator.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,10 +567,6 @@ static void accel_copy_permanent_strings(zend_new_interned_string_func_t new_int
Bucket *p, *q;
HashTable *ht;

if (ZCSG(preload_script)) {
preload_shutdown();
}

/* empty string */
zend_empty_string = new_interned_string(zend_empty_string);
for (j = 0; j < 256; j++) {
Expand Down Expand Up @@ -774,6 +770,10 @@ static void accel_use_shm_interned_strings(void)

static void accel_use_permanent_interned_strings(void)
{
if (ZCSG(preload_script)) {
preload_shutdown();
}

accel_copy_permanent_strings(accel_replace_string_by_process_permanent);
}

Expand Down

0 comments on commit 4f57c1e

Please sign in to comment.