[xdebug-dev] Bug 0000209: Additional remote debugging session started when triggering shutdown function

From: <xdebug-dev[@]lists.xdebug.org>
Date: Thu, 19 Oct 2006 00:10:18 +0200

The following bug requires your FEEDBACK.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000209
======================================================================
Reporter: padraig
Handler:
======================================================================
Project: Xdebug
Bug ID: 209
Category: Usage problems
Reproducibility: always
Severity: minor
Priority: normal
Status: feedback
Operating System: Windows XP SP2
PHP Version: 5.1.6
Xdebug Version: 2.0.0rc1
======================================================================
Date Submitted: 2006-10-18 06:00 CEST
Last Modified: 2006-10-19 00:10 CEST
======================================================================
Summary: 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

======================================================================

----------------------------------------------------------------------
 padraig - 2006-10-18 06:01 CEST
----------------------------------------------------------------------
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-19 00:10 CEST
----------------------------------------------------------------------
I can not reproduce this (on Linux). Which remote debug client are you
using?

Bug History
Date Modified Username Field Change
======================================================================
2006-10-18 06:00padraig New Bug
2006-10-18 06:00padraig Bug Monitored: padraig
2006-10-18 06:01padraig Bugnote Added: 0000472
2006-10-19 00:10derick Bugnote Added: 0000479
2006-10-19 00:10derick Status new => feedback
======================================================================
Received on Thu Oct 19 2006 - 00:10:24 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST