com php-src: cleanup: phpdbg.c
| From: | Bob Weinand | Date: | Sat, 09 Nov 2013 22:53:27 +0000 |
| Subject: | com php-src: cleanup: phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75241@lists.php.net to get a copy of this message | ||
Commit: 1dd5d42bd80a5fa1f14b9f2046cfa042ff5e6195
Author: krakjoe <joe.watkins@live.co.uk> Sat, 9 Nov 2013 22:53:27 +0000
Parents: 60ee0cc74cbe43aa2452c97b1c687320d41b4c59
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1dd5d42bd80a5fa1f14b9f2046cfa042ff5e6195
Log:
cleanup
Changed paths:
M phpdbg.c
Diff:
diff --git a/phpdbg.c b/phpdbg.c
index 9223824..7a9b419 100644
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -25,7 +25,6 @@
#include "zend_stream.h"
#include "SAPI.h"
-#include "sapi/cgi/fastcgi.h"
#include <php_config.h>
@@ -99,17 +98,20 @@ int main(int argc, char **argv) { /* {{{ */
tsrm_ls = ts_resource(0);
}
#endif
-
+ sapi_module_struct *phpdbg = &phpdbg_sapi_module;
+
#ifdef PHP_WIN32
- _fmode = _O_BINARY; /*sets default for file streams to binary */
- setmode(_fileno(stdin), O_BINARY); /* make the stdio mode be binary */
- setmode(_fileno(stdout), O_BINARY); /* make the stdio mode be binary */
- setmode(_fileno(stderr), O_BINARY); /* make the stdio mode be binary */
+ _fmode = _O_BINARY; /*sets default for file streams to binary */
+ setmode(_fileno(stdin), O_BINARY); /* make the stdio mode be binary */
+ setmode(_fileno(stdout), O_BINARY); /* make the stdio mode be binary */
+ setmode(_fileno(stderr), O_BINARY); /* make the stdio mode be binary */
#endif
- sapi_startup(&phpdbg_sapi_module);
+ phpdbg->executable_location = argv[0];
+
+ sapi_startup(phpdbg);
- if (phpdbg_sapi_module.startup(&phpdbg_sapi_module) == SUCCESS)
+ if (phpdbg->startup(phpdbg) == SUCCESS)
{
zend_activate(TSRMLS_C);