[xdebug-dev] Bug 0000270: Debugger aborts when PHP's eval() is encountered.

From: <noreply[@]lists.xdebug.org>
Date: Thu, 24 May 2007 09:28:27 +0200

The following bug has been REOPENED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000270
======================================================================
Reporter: albert66
Handler: derick
======================================================================
Project: Xdebug
Bug ID: 270
Category: Usage problems
Reproducibility: always
Severity: crash
Priority: normal
Status: feedback
Operating System: Linux (Fedora Core 4)
PHP Version: 5.0.4
Xdebug Version: 2.0.0rc4
======================================================================
Date Submitted: 2007-05-21 10:15 CEST
Last Modified: 2007-05-24 09:28 CEST
======================================================================
Summary: Debugger aborts when PHP's eval() is encountered.
Description:
The debugger exits when a script calls PHP's eval().

Example:

<?php
print "hello";
eval("print 'to';");
print "you";
?>

When execution point passes at the second line, the debugger aborts.
======================================================================

----------------------------------------------------------------------
 albert66 - 2007-05-21 15:16 CEST
----------------------------------------------------------------------
BTW, for the "severity" field of this report I've chosen "crash". I now
believe "crash" means: a crash of the http server or of PHP. No, that's
not what happens. Sorry for misleading you. It doesn't crash. The debugger
aborts but I can restart another debugging session without a problem. It's
just that the debugging session terminates on an eval() call.

----------------------------------------------------------------------
 derick - 2007-05-22 22:59 CEST
----------------------------------------------------------------------
I can not reproduce this with the bundled client:

Waiting for debug server to connect.
Connect

<?xml version="1.0" encoding="iso-8859-1"?>

<init xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
fileuri="file:///home/httpd/html/test/xdebug/bug270.php" language="PHP"
protocol_version="1.0" appid="16229" idekey="dr"><engine
version="2.0.0RC4"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick
Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright
(c) 2002-2007 by Derick Rethans]]></copyright></init>

(cmd) step_into -i 1

<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into"
transaction_id="1" status="break" reason="ok"><xdebug:message
filename="/home/httpd/html/test/xdebug/bug270.php"
lineno="2"></xdebug:message></response>

(cmd) step_into -i 1

<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into"
transaction_id="1" status="break" reason="ok"><xdebug:message
filename="/home/httpd/html/test/xdebug/bug270.php"
lineno="3"></xdebug:message></response>

(cmd) step_into -i 1

<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into"
transaction_id="1" status="break" reason="ok"><xdebug:message
filename="/home/httpd/html/test/xdebug/bug270.php(3) : eval()&apos;d code"
lineno="1"></xdebug:message></response>

(cmd) step_into -i 1

<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into"
transaction_id="1" status="break" reason="ok"><xdebug:message
filename="/home/httpd/html/test/xdebug/bug270.php"
lineno="4"></xdebug:message></response>

(cmd) step_into -i 1

<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into"
transaction_id="1" status="break" reason="ok"><xdebug:message
filename="/home/httpd/html/test/xdebug/bug270.php"
lineno="6"></xdebug:message></response>

(cmd) step_into -i 1

<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into"
transaction_id="1" status="stopped" reason="ok"></response>

----------------------------------------------------------------------
 albert66 - 2007-05-24 09:28 CEST
----------------------------------------------------------------------
I want to add a "bugnote". Then I'll close the bug.

Bug History
Date Modified Username Field Change
======================================================================
2007-05-21 10:15albert66 New Bug
2007-05-21 10:15albert66 Bug Monitored: albert66
2007-05-21 15:16albert66 Bugnote Added: 0000621
2007-05-22 22:59derick Bugnote Added: 0000627
2007-05-22 22:59derick Assigned To => derick
2007-05-22 22:59derick Resolution open => unable to duplicate
2007-05-22 22:59derick Status new => resolved
2007-05-24 09:28albert66 Bugnote Added: 0000628
2007-05-24 09:28albert66 Resolution unable to duplicate => reopened
2007-05-24 09:28albert66 Status resolved => feedback
======================================================================
Received on Thu May 24 2007 - 09:28:28 BST

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