View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001385 | Xdebug | Remote Debugging | public | 2017-01-07 12:58 | 2017-01-08 20:42 |
Reporter | nikita2206 | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.5.0 | ||||
Target Version | 2.5.1 | Fixed in Version | 2.5.1 | ||
Summary | 0001385: Can not fetch IS_INDIRECT private properties | ||||
Description | `property_get -n $b->*A*a->children` will always result in "can not get property" error message. (affected all versions of PHP >=7) | ||||
Steps To Reproduce | e.php <?php class A { private $a; public function __construct($a) { $this->a = $a; } } class B extends A { public $a; public function __construct($privA, $a) { parent::__construct($privA); $this->a = $a; } $chain = new A(new B(new A(1), 2)); echo 1; // breakpoint here ---- end of file ---- Now if we try to run this script until the breakpoint and call `property_get -d 0 -c 0 -n $chain->a->*A*a->a` we will get an error instead of `1`. | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 7.0.10-7.0.14 | ||||
|
Fix is here https://github.com/xdebug/xdebug/pull/316 |
|
Added a review to https://github.com/xdebug/xdebug/pull/316#pullrequestreview-15608910 |
|
Fixed for 2.5.1 - thanks for the patch! |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-01-07 12:58 | nikita2206 | New Issue | |
2017-01-07 13:02 | nikita2206 | Note Added: 0004159 | |
2017-01-07 17:41 | derick | Category | Usage problems (Wrong Results) => Remote Debugging |
2017-01-07 17:41 | derick | Target Version | => 2.5.1 |
2017-01-07 17:41 | derick | Summary | property_get can't retrieve children of private fields => Can not fetch IS_INDIRECT private properties |
2017-01-07 17:41 | derick | Note Added: 0004160 | |
2017-01-07 17:41 | derick | Assigned To | => derick |
2017-01-07 17:41 | derick | Status | new => confirmed |
2017-01-08 20:42 | derick | Note Added: 0004164 | |
2017-01-08 20:42 | derick | Status | confirmed => closed |
2017-01-08 20:42 | derick | Resolution | open => fixed |
2017-01-08 20:42 | derick | Fixed in Version | => 2.5.1 |