Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Bug 0000209: Additional remote debugging session started when triggering sh: msg#00055

php.xdebug.devel

Subject: Bug 0000209: Additional remote debugging session started when triggering shutdown function


The following bug has been CLOSED
======================================================================
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: closed
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 10:19 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?

----------------------------------------------------------------------
derick - 2006-10-19 10:19 CEST
----------------------------------------------------------------------
Fixed in CVS.

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
2006-10-19 10:19derick Bugnote Added: 0000480
2006-10-19 10:19derick Status feedback => closed
======================================================================




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe