com php-src: Fixed bug #74353 (Segfault when killing within bash script trap code): NEWS Zend/zend_signal.c

[email protected] (Xinchen Hui)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    7a796d18eefcc62a83199adb9db92913172f81b6
Author:    Xinchen Hui <[email protected]>         Fri, 7 Apr 2017 16:15:36 +0800
Parents:   d3198aa5a1ba4f28a2853c35fc445be4f426e0b0
Branches:  PHP-7.1 master

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=7a796d18eefcc62a83199adb9db92913172f81b6

Log:
Fixed bug #74353 (Segfault when killing within bash script trap code)

Bugs:
https://bugs.php.net/74353

Changed paths:
  M  NEWS
  M  Zend/zend_signal.c


Diff:
diff --git a/NEWS b/NEWS
index 29700ad..ab04592 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ PHP                                                                        NEWS
 ?? ??? 2017, PHP 7.1.5
 
 - Core:
+  . Fixed bug #74353 (Segfault when killing within bash script trap code).
+    (Laruence)
   . Fixed bug #74340 (Magic function __get has different behavior in php 7.1.x).
     (Nikita)
 
diff --git a/Zend/zend_signal.c b/Zend/zend_signal.c
index e067c51..368ad7b 100644
--- a/Zend/zend_signal.c
+++ b/Zend/zend_signal.c
@@ -210,7 +210,7 @@ static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context)
 #endif
 			}
 		}
-	} else {
+	} else if (p_sig.handler != SIG_IGN) {
 		if (p_sig.flags & SA_SIGINFO) {
 			if (p_sig.flags & SA_RESETHAND) {
 				SIGG(handlers)[signo-1].flags   = 0;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.