summaryrefslogtreecommitdiff
path: root/phpdbg.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2014-09-14 12:24:56 +0200
committerBob Weinand <bobwei9@hotmail.com>2014-09-14 12:24:56 +0200
commit05c73757eda452bcc43de4f5e2d80ec300e0595d (patch)
treeaf0f189b6a4954febb3ae19464e807a80b84b9eb /phpdbg.c
parent6464b3ffaeadf2243de864dc28f84ce196b27a55 (diff)
downloadphp-git-05c73757eda452bcc43de4f5e2d80ec300e0595d.tar.gz
Fix bug #111 (compile error without ZEND_SIGNALS)
Diffstat (limited to 'phpdbg.c')
-rw-r--r--phpdbg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpdbg.c b/phpdbg.c
index 1fbd18a423..c881559e6e 100644
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -1296,14 +1296,14 @@ phpdbg_main:
/* do not install sigint handlers for remote consoles */
/* sending SIGINT then provides a decent way of shutting down the server */
-#if defined(ZEND_SIGNALS) && !defined(_WIN32)
- if (listen[0] < 0) {
- zend_try { zend_signal(SIGINT, phpdbg_sigint_handler TSRMLS_CC); } zend_end_try();
- }
-#elif !defined(_WIN32)
+#ifndef _WIN32
if (listen[0] < 0) {
#endif
+#if defined(ZEND_SIGNALS) && !defined(_WIN32)
+ zend_try { zend_signal(SIGINT, phpdbg_sigint_handler TSRMLS_CC); } zend_end_try();
+#else
signal(SIGINT, phpdbg_sigint_handler);
+#endif
#ifndef _WIN32
}
#endif