You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* A signal could hit after TSRM shutdown, in this case globals are already freed. */
91
-
if (tsrm_is_shutdown()) {
90
+
/* A signal could hit after TSRM shutdown, in this case globals are already freed.
91
+
* Or it could be delivered to a thread that didn't execute PHP yet.
92
+
* In the latter case we act as if SIGG(active) is false. */
93
+
if (tsrm_is_shutdown() || !tsrm_is_managed_thread()) {
92
94
/* Forward to default handler handler */
93
95
zend_signal_handler(signo, siginfo, context);
94
96
return;
95
97
}
96
-
97
-
if (!tsrm_is_managed_thread()) {
98
-
fprintf(stderr, "zend_signal_handler_defer() called in a thread not managed by PHP. The expected signal handler will not be called. This is probably a bug.\n");
0 commit comments