View Issue Details

IDProjectCategoryView StatusLast Update
0000209XdebugUsage problems (Wrong Results)public2006-10-19 09:19
ReporterpadraigAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0000209: Additional remote debugging session started when triggering shutdown function
Description  I find that XDebug breaks inside my user-defined function that I registered using
          register_shutdown_function()

Here is what happens (PHP code in 'additional information')

1. I verify there are no breakpoints set

2. I start debugging callFunction.php
  e.g. http://mysite.com/callFunction.php?XDEBUG_SESSION_START=mySess

3. I get the first <init> message
   <init fileuri="...callFunction.php> ...elements...</init>

4. I hit 'detach'
     - this is sent : 'detach -i 34'

5. I get another <init> message (right after the detach command)
   <init fileuri="...callFunctionInclude.php>> ...elements...<init>

6. The debugger breaks inside my function defined for register_shutdown_function

7. I hit 'detach' again

8. The remote debugging session ends

Additional InformationXDebug version : 2.0.0rc1-dev

Experiment Code (2 files):

callFunction.php:
  include("callFunctionInclude.php");
  echo "test";

callFunctionInclude.php:
  <?php
     function myFunction()
      {
       $counter = 1 + 2;
      }

     register_shutdown_function('myFunction');
  ?>
TagsNo tags attached.
Operating SystemWindows XP SP2
PHP Version5.1.6

Activities

padraig

2006-10-18 05:01

reporter   ~0000472

Oops... I meant

callFunction.php:
<?php
include("callFunctionInclude.php");
echo "test";
?>

callFunctionInclude.php:
<?php
function myFunction()
{
$counter = 1 + 2;
}

register_shutdown_function('myFunction');
?>

derick

2006-10-18 23:10

administrator   ~0000479

I can not reproduce this (on Linux). Which remote debug client are you using?

derick

2006-10-19 09:19

administrator   ~0000480

Fixed in CVS.

Issue History

Date Modified Username Field Change
2006-10-18 05:00 padraig New Issue
2006-10-18 05:01 padraig Note Added: 0000472
2006-10-18 23:10 derick Note Added: 0000479
2006-10-18 23:10 derick Status new => feedback
2006-10-19 09:19 derick Status feedback => closed
2006-10-19 09:19 derick Note Added: 0000480
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)