Skip to content

Commit

Permalink
Improved fix
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Nov 27, 2017
1 parent c412b8b commit 9d02227
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions ext/opcache/Optimizer/sccp.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ static zend_bool can_replace_op1(
case ZEND_MAKE_REF:
case ZEND_UNSET_CV:
case ZEND_ISSET_ISEMPTY_CV:
case ZEND_INSTANCEOF:
return 0;
case ZEND_INIT_ARRAY:
case ZEND_ADD_ARRAY_ELEMENT:
Expand Down
2 changes: 0 additions & 2 deletions ext/opcache/Optimizer/zend_optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,6 @@ int zend_optimizer_update_op1_const(zend_op_array *op_array,
/* This would require a non-local change.
* zend_optimizer_replace_by_const() supports this. */
return 0;
case ZEND_INSTANCEOF:
return 0;
case ZEND_CASE:
case ZEND_FETCH_LIST:
return 0;
Expand Down

0 comments on commit 9d02227

Please sign in to comment.