Skip to content

Commit a12324a

Browse files
committed
Call php_child_init() after fork during preloading
1 parent c561f7d commit a12324a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)