Skip to content

Commit 0b6ce69

Browse files
Merge pull request grpc#19181 from stanley-cheung/php-fix-zts-build-backport
Backport: PHP fix ZTS build
2 parents 53e7430 + facf4b3 commit 0b6ce69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/php/ext/grpc/php_grpc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ void register_fork_handlers() {
203203
}
204204
}
205205

206-
void apply_ini_settings() {
206+
void apply_ini_settings(TSRMLS_D) {
207207
if (GRPC_G(enable_fork_support)) {
208208
char *enable_str = malloc(sizeof("GRPC_ENABLE_FORK_SUPPORT=1"));
209209
strcpy(enable_str, "GRPC_ENABLE_FORK_SUPPORT=1");
@@ -392,7 +392,7 @@ PHP_MINFO_FUNCTION(grpc) {
392392
*/
393393
PHP_RINIT_FUNCTION(grpc) {
394394
if (!GRPC_G(initialized)) {
395-
apply_ini_settings();
395+
apply_ini_settings(TSRMLS_C);
396396
grpc_init();
397397
register_fork_handlers();
398398
grpc_php_init_completion_queue(TSRMLS_C);

0 commit comments

Comments
 (0)