summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2014-03-16 20:04:08 +0100
committerBob Weinand <bobwei9@hotmail.com>2014-03-16 20:04:08 +0100
commit98025a40b8b0a791b75fa6b330ed8d54c92da31c (patch)
tree3aa8622b458617b69838d9d84d212f47fe760c86
parent3fcdd6ab0f8537d49019cbd01809c6a40a869f37 (diff)
downloadphp-git-98025a40b8b0a791b75fa6b330ed8d54c92da31c.tar.gz
Cleanup
-rw-r--r--phpdbg.c11
-rw-r--r--phpdbg_win.h2
2 files changed, 6 insertions, 7 deletions
diff --git a/phpdbg.c b/phpdbg.c
index af3b75c95e..12611e3ebe 100644
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -1336,6 +1336,11 @@ phpdbg_out:
}
#endif
+#ifdef _WIN32
+ } __except(phpdbg_exception_handler_win32(xp = GetExceptionInformation())) {
+ phpdbg_error("Access violation (Segementation fault) encountered\ntrying to abort cleanly...");
+ }
+#endif
#ifndef ZTS
/* force cleanup of auto and core globals */
zend_hash_clean(CG(auto_globals));
@@ -1373,11 +1378,7 @@ phpdbg_out:
} zend_end_try();
sapi_shutdown();
-#ifdef _WIN32
- } __except(phpdbg_exception_handler_win32(xp = GetExceptionInformation())) {
- // if !EXCEPTION_CONTINUE_EXECUTION
- }
- #endif
+
}
if (cleaning || remote) {
diff --git a/phpdbg_win.h b/phpdbg_win.h
index da97c797b1..68c3052790 100644
--- a/phpdbg_win.h
+++ b/phpdbg_win.h
@@ -34,6 +34,4 @@ void phpdbg_win_set_mm_heap(zend_mm_heap *heap);
int phpdbg_exception_handler_win32(EXCEPTION_POINTERS *xp);
-int __stdcall phpdbg_watch_set_segv_handler_asm();
-
#endif \ No newline at end of file