View Issue Details

IDProjectCategoryView StatusLast Update
0001128XdebugStep Debuggingpublic2021-03-17 15:23
ReporterSAbboushi Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
PlatformWindowsOSWindowsOS VersionW7 64
Product Version2.3.1 
Summary0001128: variables missing from Locals window when passing extra parameters to function/method
Description

/* Using Visual Studio 2013 with Devsense PHP Tools, or

  • Using UEStudio 15:
  • 1) Set breakpoint on the 3 lines containing: $c=2
  • 2) Examine Locals window to confirm that $a does not appear when a static call or a function call passes more variables than the called method/function expects.
  • 3) Note that the existence of a reference to $a in Class Two results in $a being displayed in the Locals window. Note also that removing '$b=1' will result in $a being displayed in Locals window.
  • <SAA>
    */
Steps To Reproduce

$xyz = new Class1;
class Class1 {
public function __construct() { $this->_callHook(); }
function _callHook(){
$ret = One::f1('a');
$ret = f1('b');
$ret = Two::f1('a');
}
}
class One{
static function f1(){ $a=1; $b=1;
$c=2;
}
}
function f1(){ $a=1; $b=1;
$c=2;
}
class Two{
static function f1(){ $a=1; $b=1;
$c=2; echo $a;
}
}

TagsNo tags attached.
Operating SystemW7 64
PHP Version5.6.5-5.6.9

Activities

derick

2016-12-13 21:33

administrator   ~0004050

Likely related to 0000546.

derick

2021-03-17 09:39

administrator   ~0005769

Is this issue still relevant to you?

SAbboushi

2021-03-17 13:26

reporter   ~0005785

Don't have any current php projects, so not at the moment

derick

2021-03-17 15:23

administrator   ~0005791

Let me close it then. If you run into this in the future, feel free to file a new ticket.

Issue History

Date Modified Username Field Change
2015-03-11 20:43 SAbboushi New Issue
2016-07-31 12:35 derick Category Debug client (console) => debugclient (debugging tool)
2016-07-31 12:35 derick Category debugclient (debugging tool) => (No Category)
2016-12-13 21:31 derick Category (No Category) => Remote Debugging
2016-12-13 21:33 derick Note Added: 0004050
2016-12-13 21:33 derick Assigned To => derick
2016-12-13 21:33 derick Status new => acknowledged
2020-03-12 16:33 derick Category Remote Debugging => Step Debugging
2021-03-17 09:39 derick Status acknowledged => feedback
2021-03-17 09:39 derick Note Added: 0005769
2021-03-17 13:26 SAbboushi Note Added: 0005785
2021-03-17 13:26 SAbboushi Status feedback => assigned
2021-03-17 15:23 derick Status assigned => closed
2021-03-17 15:23 derick Resolution open => unable to reproduce
2021-03-17 15:23 derick Note Added: 0005791