Skip to content

Commit 01181d1

Browse files
committed
use tsrm_shutdown
1 parent bd87039 commit 01181d1

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

phpdbg.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ static PHP_RSHUTDOWN_FUNCTION(phpdbg) /* {{{ */
162162
if (PHPDBG_G(prompt)[0]) {
163163
free(PHPDBG_G(prompt)[0]);
164164
}
165+
165166
if (PHPDBG_G(prompt)[1]) {
166167
free(PHPDBG_G(prompt)[1]);
167168
}
@@ -564,13 +565,13 @@ int main(int argc, char **argv) /* {{{ */
564565
setmode(_fileno(stderr), O_BINARY); /* make the stdio mode be binary */
565566
#endif
566567

568+
phpdbg_main:
567569
#ifdef ZTS
568570
tsrm_startup(1, 1, 0, NULL);
569571

570572
tsrm_ls = ts_resource(0);
571573
#endif
572574

573-
phpdbg_main:
574575
ini_entries = NULL;
575576
ini_entries_len = 0;
576577
ini_ignore = 0;
@@ -847,14 +848,14 @@ int main(int argc, char **argv) /* {{{ */
847848
sapi_shutdown();
848849
}
849850

850-
if (cleaning) {
851-
goto phpdbg_main;
852-
}
853-
854851
#ifdef ZTS
855852
/* bugggy */
856-
/* tsrm_shutdown(); */
853+
tsrm_shutdown();
857854
#endif
858855

856+
if (cleaning) {
857+
goto phpdbg_main;
858+
}
859+
859860
return 0;
860861
} /* }}} */

phpdbg_help.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ PHPDBG_HELP(break) /* {{{ */
234234
phpdbg_writeln(EMPTY);
235235
phpdbg_writeln("\t%sbreak [address] 0x7ff68f570e08", phpdbg_get_prompt(TSRMLS_C));
236236
phpdbg_writeln("\t%sb [a] 0x7ff68f570e08", phpdbg_get_prompt(TSRMLS_C));
237-
phpdbg_writeln("\tWill break at the opline with the address provided (addresses are shown during execution)");
237+
phpdbg_writeln("\tWill break at the opline with the address provided");
238238
phpdbg_writeln(EMPTY);
239239
phpdbg_writeln("\t%sbreak [lineno] 200", phpdbg_get_prompt(TSRMLS_C));
240240
phpdbg_writeln("\t%sb [l] 200", phpdbg_get_prompt(TSRMLS_C));

0 commit comments

Comments
 (0)