New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue1385: IS_INDIRECT when fetching private properties #316
Conversation
a75d243
to
102f9bf
Compare
@derickr shouldn't we also call |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I just have some suggested changes for the CS in the test file.
Would you also mind changing the commit message to be exactly "Fixed issue #1385: Can not fetch IS_INDIRECT private properties", and change the test file names to "tests/bug01385.phpt" and "tests/bug01385.inc" with as test file "test for bug #1385: Can not fetch IS_INDIRECT private properties" please?
@@ -33,9 +34,14 @@ public function __construct() | |||
$this->tmpDir = sys_get_temp_dir(); | |||
} | |||
|
|||
private function open() | |||
private function open(&$errno, &$errstr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Coding Standards I use have a space after (
and before )
, as well as the {
on a new line (see line 40 below).
Done. What do you think about what I said above? |
I think it makes sense to use the "silent flag", and I would welcome a PR with the GIST that you linked to. I am not sure whether I want to change how property_get works. Adding a new command to the protocol is probably not very useful either, as almost no IDE will add support for it (as it's not really necessary?). |
Nice, you'll get it tomorrow.
It is kinda necessary... Well, those are rare use cases, but basically the way This shows that we, at least, need some escaping capability. But here's a snippet that makes it impossible to get certain property with |
https://bugs.xdebug.org/view.php?id=1385