]> granicus.if.org Git - php/commitdiff
Cleanup
authorBob Weinand <bobwei9@hotmail.com>
Sun, 16 Mar 2014 19:04:08 +0000 (20:04 +0100)
committerBob Weinand <bobwei9@hotmail.com>
Sun, 16 Mar 2014 19:04:08 +0000 (20:04 +0100)
phpdbg.c
phpdbg_win.h

index af3b75c95e36a75fc201c94e10455cc72a3e3fae..12611e3ebe479914326832dc73e9e0ac24b3ee1b 100644 (file)
--- 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) {
index da97c797b14d483bc20f77993d213e66273acf45..68c305279073018a79d42db1dbec490b802b9421 100644 (file)
@@ -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