int php_optind, opt, show_banner = 1;
long cleaning = 0;
int run = 0;
+ int step = 0;
+
#ifdef ZTS
void ***tsrm_ls;
#endif
php_optind = 1;
opt = 0;
run = 0;
+ step = 0;
while ((opt = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 0, 2)) != -1) {
switch (opt) {
break;
case 's': /* set stepping on */
- flags |= PHPDBG_IS_STEPPING;
+ step = 1;
break;
case 'b': /* set colours off */
}
} zend_end_try();
+ /* step from here, not through init */
+ if (step) {
+ PHPDBG_G(flags) |= PHPDBG_IS_STEPPING;
+ }
+
if (run) {
/* no need to try{}, run does it ... */
PHPDBG_COMMAND_HANDLER(run)(NULL, NULL TSRMLS_CC);
#define PHPDBG_SEEK_MASK (PHPDBG_IN_UNTIL|PHPDBG_IN_FINISH|PHPDBG_IN_LEAVE)
#define PHPDBG_IS_REGISTERED (1<<16)
+#define PHPDBG_IS_STEPONEVAL (1<<17)
#ifndef _WIN32
# define PHPDBG_DEFAULT_FLAGS (PHPDBG_IS_QUIET|PHPDBG_IS_COLOURED)