com php-src: Do not display compilation success / normal script end in -rr mode: sapi/phpdbg/phpdbg.c
| From: | Bob Weinand | Date: | Mon, 20 Jul 2015 16:00:42 +0000 |
| Subject: | com php-src: Do not display compilation success / normal script end in -rr mode: sapi/phpdbg/phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88057@lists.php.net to get a copy of this message | ||
Commit: 6435eb80190ebfee00b8731ae369dba6d14a15f2
Author: Bob Weinand <bobwei9@hotmail.com> Sat, 18 Jul 2015 20:37:44 +0200
Parents: 440d7156322058da4a2f2ffa9eced2802dafad79
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6435eb80190ebfee00b8731ae369dba6d14a15f2
Log:
Do not display compilation success / normal script end in -rr mode
Changed paths:
M sapi/phpdbg/phpdbg..c
Diff:
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c
index 48ac68c..3fa69cf 100644
--- a/sapi/phpdbg/phpdbg.c
+++ b/sapi/phpdbg/phpdbg.c
@@ -1475,7 +1475,7 @@ phpdbg_main:
/* setup remote server if necessary */
if (cleaning <= 0 && listen > 0) {
server = phpdbg_open_socket(address, listen);
- if (-1 > server || phpdbg_remote_init(address, listen, server, &socket, &stream) ==
FAILURE) {
+ if (-1 > server || phpdbg_remote_init(address, listen, server, &socket, &stream) ==
FAILURE) {
exit(0);
}
@@ -1656,7 +1656,7 @@ phpdbg_main:
/* auto compile */
if (PHPDBG_G(exec)) {
- if (settings) {
+ if (settings || phpdbg_startup_run > 0) {
PHPDBG_G(flags) |= PHPDBG_DISCARD_OUTPUT;
}
@@ -1814,7 +1814,7 @@ phpdbg_out:
php_request_shutdown(NULL);
} zend_end_try();
- if ((PHPDBG_G(flags) & (PHPDBG_IS_QUITTING | PHPDBG_IS_RUNNING)) == PHPDBG_IS_RUNNING) {
+ if ((PHPDBG_G(flags) & (PHPDBG_IS_QUITTING | PHPDBG_IS_RUNNING)) == PHPDBG_IS_RUNNING
&& !quit_immediately) {
phpdbg_notice("stop", "type=\"normal\"", "Script ended
normally");
cleaning++;
}