com php-src: Fix listening on port: phpdbg.c
| From: | Bob Weinand | Date: | Mon, 27 Oct 2014 09:49:16 +0000 |
| Subject: | com php-src: Fix listening on port: phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82691@lists.php.net to get a copy of this message | ||
Commit: 5e8359d360c668b5ca4f5b5dbb62e65b6e033f2c
Author: Bob Weinand <bobwei9@hotmail.com> Mon, 27 Oct 2014 10:44:01 +0100
Parents: 08684a98281810ea8917fc26619fa365d9154126
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5e8359d360c668b5ca4f5b5dbb62e65b6e033f2c
Log:
Fix listening on port
Changed paths:
M phpdbg.c
Diff:
diff --git a/phpdbg.c b/phpdbg.c
index b7fb5e5..02a9260 100644
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -1343,7 +1343,7 @@ phpdbg_main:
}
/* setup remote server if necessary */
- if (!cleaning && listen > 0) {
+ if (cleaning <= 0 && listen > 0) {
server = phpdbg_open_socket(address, listen TSRMLS_CC);
if (-1 > server || phpdbg_remote_init(address, listen, server, &socket, &stream
TSRMLS_CC) == FAILURE) {
exit(0);