summaryrefslogtreecommitdiff
path: root/phpdbg.c
diff options
context:
space:
mode:
authorkrakjoe <joe.watkins@live.co.uk>2013-11-25 23:02:54 +0000
committerkrakjoe <joe.watkins@live.co.uk>2013-11-25 23:02:54 +0000
commit87a29a96aa4e5522b24983778a5fd2d9682e91a0 (patch)
tree373eb33169a6a1308cba78c37598f6d2e0d3e983 /phpdbg.c
parent017beb002bc3a69b9723f4702e93b1b06526eec8 (diff)
downloadphp-git-87a29a96aa4e5522b24983778a5fd2d9682e91a0.tar.gz
nope
Diffstat (limited to 'phpdbg.c')
-rw-r--r--phpdbg.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/phpdbg.c b/phpdbg.c
index cebc44cf32..9eb1a0b32e 100644
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -162,7 +162,6 @@ static PHP_RSHUTDOWN_FUNCTION(phpdbg) /* {{{ */
if (PHPDBG_G(prompt)[0]) {
free(PHPDBG_G(prompt)[0]);
}
-
if (PHPDBG_G(prompt)[1]) {
free(PHPDBG_G(prompt)[1]);
}
@@ -565,13 +564,13 @@ int main(int argc, char **argv) /* {{{ */
setmode(_fileno(stderr), O_BINARY); /* make the stdio mode be binary */
#endif
-phpdbg_main:
#ifdef ZTS
tsrm_startup(1, 1, 0, NULL);
tsrm_ls = ts_resource(0);
#endif
+phpdbg_main:
ini_entries = NULL;
ini_entries_len = 0;
ini_ignore = 0;
@@ -848,13 +847,14 @@ phpdbg_out:
sapi_shutdown();
}
-#ifdef ZTS
- tsrm_shutdown();
-#endif
-
if (cleaning) {
goto phpdbg_main;
}
+#ifdef ZTS
+ /* bugggy */
+ /* tsrm_shutdown(); */
+#endif
+
return 0;
} /* }}} */