I can reproduce this, and I have a fix, but I need to sort out some merging-to-branch issues before I can commit it. The patch is: Index: xdebug.c --- xdebug.c (revision 3360) +++ xdebug.c (working copy) @@ -532,7 +532,8 @@ PHP_MINIT_FUNCTION(xdebug) zend_xdebug_global_offset = zend_get_resource_handle(&dummy_ext); /* Overload the "exit" opcode */ XDEBUG_SET_OPCODE_OVERRIDE_COMMON(ZEND_EXIT); XDEB