com php-src: Fix issue with zend signals in php_request_sta rtup: main/main.c

From: Date: Thu, 19 Oct 2017 10:48:16 +0000
Subject: com php-src: Fix issue with zend signals in php_request_sta rtup: main/main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-99797@lists.php.net to get a copy of this message
Commit: bb1814b5c3ae78d1d3cb383f58a9729227138b7c Author: Herman J. Radtke III <herman@hermanradtke.com> Sat, 14 Oct 2017 10:50:30 -0700 Committer: Joe Watkins <krakjoe@php.net> Thu, 19 Oct 2017 11:48:16 +0100 Parents: 925d969f9e392da21849b9f030bc31146ad35d8f Branches: PHP-7.1 PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bb1814b5c3ae78d1d3cb383f58a9729227138b7c Log: Fix issue with zend signals in php_request_startup The zend_signals_activate() function is called in php_request_startup() even if --disable-zend-signals is used. This causes uninitialized variables to be used on ZTS builds. This was removed in 7.1 in c870633. Removing guards from the SAPIs should be fine, but removing the guard from main/main.c prevents anyone using the static embedded library to integrate PHP into their programs. For more details, see the "Additional remark" section in https://bugs.php.net/bug.php?id=74149 Changed paths: M main/main.c Diff: diff --git a/main/main.c b/main/main.c index 37eae94..a3a726e 100644 --- a/main/main.c +++ b/main/main.c @@ -1662,7 +1662,9 @@ int php_request_startup(void) zend_activate(); sapi_activate(); +#ifdef ZEND_SIGNALS zend_signal_activate(); +#endif if (PG(max_input_time) == -1) { zend_set_timeout(EG(timeout_seconds), 1);

« previous php.cvs (#99797) next »