View Issue Details

IDProjectCategoryView StatusLast Update
0000631XdebugUncategorizedpublic2010-11-07 05:19
Reporteroetting Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.1.0 
Summary0000631: Summary not written when script ended with "exit()"
Description

An old bug (0000068) seem to have reappeared. When you end your script with exit() xdebug doesn't write
the summary line in the profile output file

TagsNo tags attached.
Operating SystemMac OS X
PHP Version5.3.2

Relationships

has duplicate 0000656 resolvedderick Summary not written when script ended with "exit()" 

Activities

derick

2010-10-28 09:17

administrator   ~0001593

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);
  • XDEBUG_SET_OPCODE_OVERRIDE_ASSIGN(exit, ZEND_EXIT);
  • XDEBUG_SET_OPCODE_OVERRIDE_COMMON(ZEND_JMP);
    XDEBUG_SET_OPCODE_OVERRIDE_COMMON(ZEND_JMPZ);
    XDEBUG_SET_OPCODE_OVERRIDE_COMMON(ZEND_JMPNZ);

derick

2010-11-07 05:19

administrator   ~0001599

Fixed in rev. 3369