Merge pull request #19109 from stanley-cheung/php-segfault

Fix PHP extension segfault
pull/19149/head
Stanley Cheung 6 years ago committed by GitHub
commit e553590a0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/php/ext/grpc/php_grpc.c

@ -205,7 +205,9 @@ void register_fork_handlers() {
void apply_ini_settings() {
if (GRPC_G(enable_fork_support)) {
putenv("GRPC_ENABLE_FORK_SUPPORT=1");
char *enable_str = malloc(sizeof("GRPC_ENABLE_FORK_SUPPORT=1"));
strcpy(enable_str, "GRPC_ENABLE_FORK_SUPPORT=1");
putenv(enable_str);
}
if (GRPC_G(poll_strategy)) {

Loading…
Cancel
Save