com php-src: fix windows build: phpdbg.c

From: Date: Sun, 01 Dec 2013 08:55:37 +0000
Subject: com php-src: fix windows build: phpdbg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-75351@lists.php.net to get a copy of this message
Commit: d76e24b2db94472f11cf8cdc50ffd4c4ed520d4b Author: krakjoe <joe.watkins@live.co.uk> Sun, 1 Dec 2013 08:55:37 +0000 Parents: 2c216ec64890be6b5cb76832b16e739ce935d29f Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d76e24b2db94472f11cf8cdc50ffd4c4ed520d4b Log: fix windows build Changed paths: M phpdbg.c Diff: diff --git a/phpdbg.c b/phpdbg.c index 3ac0b09..602cc0b 100644 --- a/phpdbg.c +++ b/phpdbg.c @@ -942,17 +942,25 @@ phpdbg_main: /* do not install sigint handlers for remote consoles */ /* sending SIGINT then provides a decent way of shutting down the server */ #ifdef ZEND_SIGNALS +# ifndef _WIN32 if (listen[0] < 0) { +# endif zend_try { zend_signal_activate(TSRMLS_C); zend_signal(SIGINT, phpdbg_sigint_handler TSRMLS_CC); } zend_end_try(); +# ifndef _WIN32 } +# endif #else +# ifndef _WIN32 if (listen[0] < 0) { +# endif signal(SIGINT, phpdbg_sigint_handler); +#ifndef _WIN32 } #endif +#endif PG(modules_activated) = 0;

« previous php.cvs (#75351) next »