View Issue Details

IDProjectCategoryView StatusLast Update
0000109XdebugUncategorizedpublic2005-02-16 11:49
Reportere_v_ches Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionopen 
Summary0000109: requesting property_get or _value of protected class member from outside the class leads to an exit
Description

Both property_get and property_value requests for protected member of an instance of a class lead to debugger exit, simple and plain, without error codes, like:

property_value -n $a->j -i 10
50 <response status="stopped" reason="ok"></response>

I'll give example code and a command-response log in additional info.

To reproduce the bug in a given code you step_into 6 times and then request for property_get/_value $a->j

Additional Information

PHP example code, test.php:

<?php
class A {
var $i = 10;
var $s = "_innertest";
protected $j="fuck america";
function A(){
$z = 10;
}
}
$a = new A();
$s="outer test";
$j=11;
?>

Commands log. No -i attribute given in command lines, but it exists, simply not shown - that's the client interface thing :

366 <init fileuri="file:///D%3A%5CPHP-5.0.3%5Ctest.php" language="PHP" protocol_version="1.0" appid="2044" session="workbench77" idekey="elvin"><engine version="2.0.0beta2-dev"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2004 by Derick Rethans]]></copyright></init>
step_into
87 <response command="step_into" transaction_id="0" status="break" reason="ok"></response>
step_into
87 <response command="step_into" transaction_id="1" status="break" reason="ok"></response>
step_into
87 <response command="step_into" transaction_id="2" status="break" reason="ok"></response>
step_into
87 <response command="step_into" transaction_id="3" status="break" reason="ok"></response>
step_into
87 <response command="step_into" transaction_id="4" status="break" reason="ok"></response>
step_into
87 <response command="step_into" transaction_id="5" status="break" reason="ok"></response>
step_into
87 <response command="step_into" transaction_id="6" status="break" reason="ok"></response>
stack_get
159 <response command="stack_get" transaction_id="7"><stack where="{main}" level="0" filename="file:///D%3A%5CPHP-5.0.3%5Ctest.php" lineno="13"></stack></response>
property_value -n $a->j
50 <response status="stopped" reason="ok"></response>

TagsNo tags attached.
Operating Systemwin32
PHP Version5.0.3-dev

Activities

derick

2005-02-16 11:49

administrator   ~0000229

This one is fixed in CVS for a few weeks now.

Issue History

Date Modified Username Field Change
2005-01-06 12:50 e_v_ches New Issue
2005-02-16 11:49 derick Note Added: 0000229
2005-02-16 11:49 derick Status new => closed
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)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized