View Issue Details

IDProjectCategoryView StatusLast Update
0000631XdebugUncategorizedpublic2010-11-07 05:19
Reporteroetting Assigned Toderick  
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

Issue History

Date Modified Username Field Change
2010-10-27 10:21 oetting New Issue
2010-10-28 09:17 derick Note Added: 0001593
2010-10-28 09:17 derick Assigned To => derick
2010-10-28 09:17 derick Status new => confirmed
2010-11-07 05:19 derick Note Added: 0001599
2010-11-07 05:19 derick Status confirmed => closed
2010-11-07 05:19 derick Resolution open => fixed
2011-02-17 21:19 derick Relationship added has duplicate 0000656
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized