{'I', 0, "ignore init"},
{'O', 1, "opline log"},
{'r', 0, "run"},
+ {'e', 0, "generate ext_stmt opcodes"},
{'E', 0, "step-through-eval"},
{'S', 1, "sapi-name"},
#ifndef _WIN32
int socket = -1;
FILE* stream = NULL;
char *print_opline_func;
+ zend_bool ext_stmt = 0;
#ifdef ZTS
void ***tsrm_ls;
flags &= ~PHPDBG_IS_QUIET;
break;
+ case 'e':
+ ext_stmt = 1;
+ break;
+
case 'E': /* stepping through eval on */
flags |= PHPDBG_IS_STEPONEVAL;
break;
cleaning = -1;
+ if (ext_stmt) {
+ CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO;
+ }
+
/* initialize from file */
PHPDBG_G(flags) |= PHPDBG_IS_INITIALIZING;
zend_try {
" **-O** **-O**my.oplog Sets oplog output file" CR
" **-r** Run execution context" CR
" **-rr** Run execution context and quit after execution" CR
+" **-e** Generate extended information for debugger/profiler" CR
" **-E** Enable step through eval, careful!" CR
" **-S** **-S**cli Override SAPI name, careful!" CR
" **-l** **-l**4000 Setup remote console ports" CR