com php-src: Merge branch 'PHP-7.1' into PHP-7.2: TSRM/TSRM.c

From: Date: Thu, 21 Dec 2017 12:49:05 +0000
Subject: com php-src: Merge branch 'PHP-7.1' into PHP-7.2: TSRM/TSRM.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100649@lists.php.net to get a copy of this message
Commit: ddd401859c0c0c311e70b964262d1274f4ca8035 Author: Anatol Belski <ab@php.net> Thu, 21 Dec 2017 13:49:05 +0100 Parents: dcc3f00090fc750f17aed4bf5ab4099bc91de75a a46f952c0ffe4ea9436699fbaa91e8c6cdb319b0 Branches: PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ddd401859c0c0c311e70b964262d1274f4ca8035 Log: Merge branch 'PHP-7.1' into PHP-7.2 * PHP-7.1: Fix segfault. Compile param --with-tsrm-pth=yes Changed paths: MM TSRM/TSRM.c Diff: diff --cc TSRM/TSRM.c index cde8437,9fb8abd..ed1f24f --- a/TSRM/TSRM.c +++ b/TSRM/TSRM.c @@@ -121,13 -125,12 +126,14 @@@ static int32 tls_key # warning tsrm_set_interpreter_context is probably broken on this platform #endif +TSRM_TLS uint8_t in_main_thread = 0; + /* Startup TSRM (call once for the entire process) */ TSRM_API int tsrm_startup(int expected_threads, int expected_resources, int debug_level, char *debug_filename) -{ +{/*{{{*/ #if defined(GNUPTH) pth_init(); + pth_key_create(&tls_key, 0); #elif defined(PTHREADS) pthread_key_create( &tls_key, 0 ); #elif defined(TSRM_ST)

« previous php.cvs (#100649) next »