summaryrefslogtreecommitdiffstats
path: root/ev-php5.patch
blob: 0f4583bf2908608206f972ad609a5d6854d23ec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 8296b29a380ce2767ef07a7ebb0ca5b5c37c1832 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Mon, 26 Jul 2021 14:21:22 +0200
Subject: [PATCH 2/2] Fix PHP 5 and ZTS build

---
 php5/watcher.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/php5/watcher.c b/php5/watcher.c
index 9ff4d78..a5a2918 100644
--- a/php5/watcher.c
+++ b/php5/watcher.c
@@ -73,7 +73,7 @@ void php_ev_watcher_callback(EV_P_ ev_watcher *watcher, int revents)
 			php_error_docref(NULL, E_WARNING,
 					"Stopping %s watcher because of uncaught exception in the callback",
 					Z_OBJCE_P(self)->name);
-			php_ev_stop_watcher(watcher);
+			php_ev_stop_watcher(watcher TSRMLS_CC);
 		}
 
 		zval_ptr_dtor(&self);
-- 
2.31.1