if (PHP_PHPDBG == "yes") {
SAPI('phpdbg', 'phpdbg.c phpdbg_prompt.c phpdbg_cmd.c phpdbg_info.c phpdbg_help.c phpdbg_break.c phpdbg_print.c phpdbg_bp.c phpdbg_opcode.c phpdbg_list.c phpdbg_utils.c', 'phpdbg.exe');
+ ADD_FLAG("LIBS_PHPDBG", "ws2_32.lib user32.lib");
}
size_t oplog_file_len;
zend_ulong flags;
char *php_optarg;
- int php_optind;
- int opt;
- long cleaning = 0;
+ int php_optind;
+ int opt;
+ long cleaning = 0;
#ifdef ZTS
void ***tsrm_ls;
#endif
#ifdef PHP_WIN32
+ HWND console;
+ RECT consoleRect;
_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 */
+
+ console = GetConsoleWindow();
+ if (console) {
+ GetWindowRect(console, &consoleRect);
+ MoveWindow(
+ console, consoleRect.left, consoleRect.top, 800,600, TRUE);
+ }
#endif
#ifdef ZTS
- tsrm_startup(1, 1, 0, NULL);
+ tsrm_startup(1, 1, 0, NULL);
tsrm_ls = ts_resource(0);
#endif
phpdbg_writeln("\t%c -> %s", prompt_command->alias, prompt_command->name);
while (sub_command && sub_command->name) {
if (sub_command->alias) {
- phpdbg_writeln("\t|------- %c -> %s\t%s", sub_command->alias,
+ phpdbg_writeln("\t|--- %c -> %s\t%s", sub_command->alias,
sub_command->name, sub_command->tip);
}
++sub_command;