Skip to content

Commit

Permalink
Merge branch 'PHP-7.0'
Browse files Browse the repository at this point in the history
* PHP-7.0:
  Let's only read-only here
  • Loading branch information
laruence committed May 17, 2016
2 parents b27ecb5 + 2eb7e75 commit 0c8879e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/standard/var.c
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ static void php_var_serialize_intern(smart_str *buf, zval *struc, php_serialize_
}

if (Z_ISREF_P(data) && Z_REFCOUNT_P(data) == 1) {
ZVAL_UNREF(data);
data = Z_REFVAL_P(data);
}

/* we should still add element even if it's not OK,
Expand Down

0 comments on commit 0c8879e

Please sign in to comment.