File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -966,6 +966,7 @@ const opt_struct OPTIONS[] = { /* {{{ */
966966 {'I' , 0 , "ignore init" },
967967 {'O' , 1 , "opline log" },
968968 {'r' , 0 , "run" },
969+ {'e' , 0 , "generate ext_stmt opcodes" },
969970 {'E' , 0 , "step-through-eval" },
970971 {'S' , 1 , "sapi-name" },
971972#ifndef _WIN32
@@ -1242,6 +1243,7 @@ int main(int argc, char **argv) /* {{{ */
12421243 int socket = -1 ;
12431244 FILE * stream = NULL ;
12441245 char * print_opline_func ;
1246+ zend_bool ext_stmt = 0 ;
12451247
12461248#ifdef ZTS
12471249 void * * * tsrm_ls ;
@@ -1382,6 +1384,10 @@ int main(int argc, char **argv) /* {{{ */
13821384 flags &= ~PHPDBG_IS_QUIET ;
13831385 break ;
13841386
1387+ case 'e' :
1388+ ext_stmt = 1 ;
1389+ break ;
1390+
13851391 case 'E' : /* stepping through eval on */
13861392 flags |= PHPDBG_IS_STEPONEVAL ;
13871393 break ;
@@ -1693,6 +1699,10 @@ int main(int argc, char **argv) /* {{{ */
16931699
16941700 cleaning = -1 ;
16951701
1702+ if (ext_stmt ) {
1703+ CG (compiler_options ) |= ZEND_COMPILE_EXTENDED_INFO ;
1704+ }
1705+
16961706 /* initialize from file */
16971707 PHPDBG_G (flags ) |= PHPDBG_IS_INITIALIZING ;
16981708 zend_try {
Original file line number Diff line number Diff line change @@ -384,6 +384,7 @@ phpdbg_help_text_t phpdbg_help_text[] = {
384384" **-O** **-O**my.oplog Sets oplog output file" CR
385385" **-r** Run execution context" CR
386386" **-rr** Run execution context and quit after execution" CR
387+ " **-e** Generate extended information for debugger/profiler" CR
387388" **-E** Enable step through eval, careful!" CR
388389" **-S** **-S**cli Override SAPI name, careful!" CR
389390" **-l** **-l**4000 Setup remote console ports" CR
You can’t perform that action at this time.
0 commit comments