View Issue Details

IDProjectCategoryView StatusLast Update
0001128XdebugRemote Debuggingpublic2016-12-13 21:33
ReporterSAbboushiAssigned Toderick 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
PlatformWindowsOSWindowsOS VersionW7 64
Product Version2.3.1 
Target VersionFixed in Version 
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.

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