com php-src: Merge branch 'xml-protocol': phpdbg.c
| From: | Bob Weinand | Date: | Sat, 18 Oct 2014 19:12:25 +0000 |
| Subject: | com php-src: Merge branch 'xml-protocol': phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82550@lists.php.net to get a copy of this message | ||
Commit: 6932bbfd526faba5513d6306df9d297c46490c5a
Author: Bob Weinand <bobwei9@hotmail.com> Sat, 18 Oct 2014 21:12:25 +0200
Parents: 449fd307e40e00e582b4b79ac18b13c1c530bc23 bdb18d9f48831cd31d42d3f0d8915c5aa5fe0f8e
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6932bbfd526faba5513d6306df9d297c46490c5a
Log:
Merge branch 'xml-protocol'
Conflicts:
phpdbg.c
phpdbg_list.c
Changed paths:
MM phpdbg.c
Diff:
diff --cc phpdbg.c
index d30e495,1a7a1f8..a8fb37a
--- a/phpdbg.c
+++ b/phpdbg.c
@@@ -663,8 -697,11 +697,9 @@@ const opt_struct OPTIONS[] = { /* {{{ *
{'r', 0, "run"},
{'E', 0, "step-through-eval"},
{'S', 1, "sapi-name"},
-#ifndef _WIN32
{'l', 1, "listen"},
{'a', 1, "address-or-any"},
-#endif
+ {'x', 0, "xml output"},
{'V', 0, "version"},
{'-', 0, NULL}
}; /* }}} */
@@@ -1161,7 -1204,12 +1202,11 @@@ phpdbg_main
address = strdup("*");
} else address = strdup(php_optarg);
} break;
-#endif
+ case 'x':
+ flags |= PHPDBG_WRITE_XML;
+ break;
+
case 'V': {
sapi_startup(phpdbg);
phpdbg->startup(phpdbg);
@@@ -1249,9 -1297,11 +1294,10 @@@
#endif
zend_mm_heap *mm_heap;
-#ifndef _WIN32
/* setup remote server if necessary */
if (!cleaning && listen > 0) {
- if (phpdbg_remote_init(address, listen, &server, &socket, &stream) == FAILURE) {
+ server = phpdbg_open_socket(address, listen);
+ if (phpdbg_remote_init(address, listen, server, &socket, &stream) == FAILURE) {
exit(0);
}
@@@ -1467,11 -1526,12 +1516,11 @@@ phpdbg_out
#ifdef _WIN32
} __except(phpdbg_exception_handler_win32(xp = GetExceptionInformation())) {
- phpdbg_error("Access violation (Segementation fault) encountered\ntrying to abort
cleanly...");
+ phpdbg_error("segfault", "", "Access violation (Segementation fault)
encountered\ntrying to abort cleanly...");
}
-phpdbg_out:
+/* phpdbg_out: */
#endif
-
+
{
int i;
/* free argv */