Skip to content

Commit

Permalink
Fixed bug #70863 Incorect logic to increment_function for proxy objects
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Nov 6, 2015
1 parent 6897c11 commit 8155ecb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Zend/zend_operators.c
Original file line number Diff line number Diff line change
Expand Up @@ -2277,7 +2277,7 @@ ZEND_API int ZEND_FASTCALL increment_function(zval *op1) /* {{{ */
zval *val;

val = Z_OBJ_HANDLER_P(op1, get)(op1, &rv);
Z_ADDREF_P(val);
Z_TRY_ADDREF_P(val);
increment_function(val);
Z_OBJ_HANDLER_P(op1, set)(op1, val);
zval_ptr_dtor(val);
Expand Down
2 changes: 1 addition & 1 deletion sapi/cli/tests/006.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ string(44) "Exception: Extension unknown does not exist
"
string(37) "Exception: Extension does not exist
"
string(%d) "Extension [ <persistent> extension #%d pcre version %d.%d.%d%a ] {
string(%d) "Extension [ <persistent> extension #%d pcre version %s ] {

- INI {
Entry [ pcre.backtrack_limit <ALL> ]
Expand Down

0 comments on commit 8155ecb

Please sign in to comment.