]> granicus.if.org Git - php/commitdiff
Fix listening on port
authorBob Weinand <bobwei9@hotmail.com>
Mon, 27 Oct 2014 09:44:01 +0000 (10:44 +0100)
committerBob Weinand <bobwei9@hotmail.com>
Mon, 27 Oct 2014 09:49:16 +0000 (10:49 +0100)
phpdbg.c

index b7fb5e5afc43cd01e38303ee0684c71dc0dd23a1..02a9260eb971b225bd5ae59b590067122dd8a144 100644 (file)
--- 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);