Skip to content

Instantly share code, notes, and snippets.

@nikita2206
Created January 7, 2017 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikita2206/af8a6c36693e96ef7a897d7f3b224395 to your computer and use it in GitHub Desktop.
Save nikita2206/af8a6c36693e96ef7a897d7f3b224395 to your computer and use it in GitHub Desktop.
diff --git a/xdebug_var.c b/xdebug_var.c
index ca111aac..0623c80b 100644
--- a/xdebug_var.c
+++ b/xdebug_var.c
@@ -549,10 +549,10 @@ static zval* fetch_zval_from_symbol_table(zval *parent, char* name, unsigned int
#if PHP_VERSION_ID >= 70000
zval dummy;
- tmp_val = zend_read_property(cce, parent, name, name_length, 0, &dummy);
+ tmp_val = zend_read_property(cce, parent, name, name_length, 1, &dummy);
if (tmp_val && tmp_val != &EG(uninitialized_zval)) {
#else
- tmp_val = zend_read_property(cce, parent, name, name_length, 0 TSRMLS_CC);
+ tmp_val = zend_read_property(cce, parent, name, name_length, 1 TSRMLS_CC);
if (tmp_val && tmp_val != EG(uninitialized_zval_ptr)) {
#endif
retval_p = tmp_val;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment