[PECL-CVS] [pecl-networking-gearman] expose-stop-wait-on-signal: fixes #51
[email protected] (Rasmus Lerdorf) Sat, 4 Apr 2026 12:25:31 +0000
| Newsgroups | php.pecl.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Rasmus Lerdorf (rlerdorf)
Date: 2026-04-04T08:25:14-04:00
Commit: https://github.com/php/pecl-networking-gearman/commit/58e04c93c5ca339df6af762c9678729d3654f4e3
Raw diff: https://github.com/php/pecl-networking-gearman/commit/58e04c93c5ca339df6af762c9678729d3654f4e3.diff
fixes #51
Changed paths:
M php_gearman.c
Diff:
diff --git a/php_gearman.c b/php_gearman.c
index 474039e..548f4ee 100644
--- a/php_gearman.c
+++ b/php_gearman.c
@@ -545,6 +545,11 @@ PHP_MINIT_FUNCTION(gearman) {
REGISTER_LONG_CONSTANT("GEARMAN_CLIENT_FREE_TASKS",
GEARMAN_CLIENT_FREE_TASKS,
CONST_CS | CONST_PERSISTENT);
+#ifdef GEARMAN_CLIENT_STOP_WAIT_ON_SIGNAL
+ REGISTER_LONG_CONSTANT("GEARMAN_CLIENT_STOP_WAIT_ON_SIGNAL",
+ GEARMAN_CLIENT_STOP_WAIT_ON_SIGNAL,
+ CONST_CS | CONST_PERSISTENT);
+#endif
REGISTER_LONG_CONSTANT("GEARMAN_CLIENT_STATE_IDLE",
GEARMAN_CLIENT_STATE_IDLE,
CONST_CS | CONST_PERSISTENT);
@@ -584,6 +589,11 @@ PHP_MINIT_FUNCTION(gearman) {
REGISTER_LONG_CONSTANT("GEARMAN_WORKER_TIMEOUT_RETURN",
GEARMAN_WORKER_TIMEOUT_RETURN,
CONST_CS | CONST_PERSISTENT);
+#ifdef GEARMAN_WORKER_STOP_WAIT_ON_SIGNAL
+ REGISTER_LONG_CONSTANT("GEARMAN_WORKER_STOP_WAIT_ON_SIGNAL",
+ GEARMAN_WORKER_STOP_WAIT_ON_SIGNAL,
+ CONST_CS | CONST_PERSISTENT);
+#endif
REGISTER_LONG_CONSTANT("GEARMAN_WORKER_STATE_START",
GEARMAN_WORKER_STATE_START,
CONST_CS | CONST_PERSISTENT);