Skip to content

Commit 05c7375

Browse files
committed
Fix bug #111 (compile error without ZEND_SIGNALS)
1 parent 6464b3f commit 05c7375

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

phpdbg.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,14 +1296,14 @@ int main(int argc, char **argv) /* {{{ */
12961296

12971297
/* do not install sigint handlers for remote consoles */
12981298
/* sending SIGINT then provides a decent way of shutting down the server */
1299-
#if defined(ZEND_SIGNALS) && !defined(_WIN32)
1300-
if (listen[0] < 0) {
1301-
zend_try { zend_signal(SIGINT, phpdbg_sigint_handler TSRMLS_CC); } zend_end_try();
1302-
}
1303-
#elif !defined(_WIN32)
1299+
#ifndef _WIN32
13041300
if (listen[0] < 0) {
13051301
#endif
1302+
#if defined(ZEND_SIGNALS) && !defined(_WIN32)
1303+
zend_try { zend_signal(SIGINT, phpdbg_sigint_handler TSRMLS_CC); } zend_end_try();
1304+
#else
13061305
signal(SIGINT, phpdbg_sigint_handler);
1306+
#endif
13071307
#ifndef _WIN32
13081308
}
13091309
#endif

0 commit comments

Comments
 (0)