MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000209XdebugUsage problems (Wrong Results)public2006-10-18 06:002006-10-19 10:19
Reporterpadraig 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionopen 
PlatformOSOS Version
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
Attached Files

- Relationships

-  Notes
(0000472)
padraig (reporter)
2006-10-18 06:01

Oops... I meant

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

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

register_shutdown_function('myFunction');
?>
(0000479)
derick (administrator)
2006-10-19 00:10

I can not reproduce this (on Linux). Which remote debug client are you using?
(0000480)
derick (administrator)
2006-10-19 10:19

Fixed in CVS.

- Issue History
Date Modified Username Field Change
2006-10-18 06:00 padraig New Issue
2006-10-18 06:01 padraig Note Added: 0000472
2006-10-19 00:10 derick Note Added: 0000479
2006-10-19 00:10 derick Status new => feedback
2006-10-19 10:19 derick Status feedback => closed
2006-10-19 10:19 derick Note Added: 0000480
2016-07-31 13:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 13:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker