Skip to content

Commit 712508f

Browse files
authored
Call php_child_init() after fork during preloading (#19287)
1 parent ce6e7a2 commit 712508f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5006,6 +5006,7 @@ static zend_result accel_finish_startup_preload_subprocess(pid_t *pid)
50065006
zend_accel_error(ACCEL_LOG_WARNING, "Preloading failed to setuid(%d)", pw->pw_uid);
50075007
exit(1);
50085008
}
5009+
php_child_init();
50095010
}
50105011

50115012
return SUCCESS;

0 commit comments

Comments
 (0)