]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-5.6' into PHP-7.0
authorXinchen Hui <laruence@gmail.com>
Thu, 17 Mar 2016 07:22:44 +0000 (15:22 +0800)
committerXinchen Hui <laruence@gmail.com>
Thu, 17 Mar 2016 07:22:44 +0000 (15:22 +0800)
* PHP-5.6:
  Fixed bug #71841 (EG(error_zval) is not handled well)
  Fixed bug #71840 (Unserialize accepts wrongly data)

Conflicts:
Zend/zend_vm_def.h
Zend/zend_vm_execute.h
ext/standard/var_unserializer.c

1  2 
Zend/zend_vm_def.h
Zend/zend_vm_execute.h
ext/standard/var_unserializer.c
ext/standard/var_unserializer.re

index 35013c157164a9b24692c7d18984d83cf79e3baa,2e81f82e4989aa446d35cad0b5ac197d221b5b55..2c721c398a16f5cb220b57b1c32a3a87c317ec92
@@@ -741,533 -382,433 +741,545 @@@ ZEND_VM_HELPER_EX(zend_binary_assign_op
                        }
                }
  
 -              if (!have_get_ptr) {
 -                      zval *z = NULL;
 -
 -                      Z_ADDREF_P(object);
 -                      if (opline->extended_value == ZEND_ASSIGN_OBJ) {
 -                              if (Z_OBJ_HT_P(object)->read_property) {
 -                                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((OP2_TYPE == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                              }
 -                      } else /* if (opline->extended_value == ZEND_ASSIGN_DIM) */ {
 -                              if (Z_OBJ_HT_P(object)->read_dimension) {
 -                                      z = Z_OBJ_HT_P(object)->read_dimension(object, property, BP_VAR_R TSRMLS_CC);
 -                              }
 -                      }
 -                      if (z) {
 -                              if (Z_TYPE_P(z) == IS_OBJECT && Z_OBJ_HT_P(z)->get) {
 -                                      zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 -
 -                                      if (Z_REFCOUNT_P(z) == 0) {
 -                                              GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                              zval_dtor(z);
 -                                              FREE_ZVAL(z);
 -                                      }
 -                                      z = value;
 -                              }
 -                              Z_ADDREF_P(z);
 -                              SEPARATE_ZVAL_IF_NOT_REF(&z);
 -                              binary_op(z, z, value TSRMLS_CC);
 -                              if (opline->extended_value == ZEND_ASSIGN_OBJ) {
 -                                      Z_OBJ_HT_P(object)->write_property(object, property, z, ((OP2_TYPE == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                              } else /* if (opline->extended_value == ZEND_ASSIGN_DIM) */ {
 -                                      Z_OBJ_HT_P(object)->write_dimension(object, property, z TSRMLS_CC);
 -                              }
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      PZVAL_LOCK(z);
 -                                      EX_T(opline->result.var).var.ptr = z;
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((OP2_TYPE == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
+                               }
 -                              zval_ptr_dtor(&z);
+                       } else {
 -                              zend_error(E_WARNING, "Attempt to assign property of non-object");
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                                      EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
++                              ZVAL_DEREF(zptr);
++                              SEPARATE_ZVAL_NOREF(zptr);
 +
-                       ZVAL_DEREF(zptr);
-                       SEPARATE_ZVAL_NOREF(zptr);
-                       binary_op(zptr, zptr, value);
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
++                              binary_op(zptr, zptr, value);
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
+                               }
                        }
 -                      zval_ptr_dtor(&object);
 -              }
 -
 -              if (IS_OP2_TMP_FREE()) {
 -                      zval_ptr_dtor(&property);
                } else {
 -                      FREE_OP2();
 +                      zend_assign_op_overloaded_property(object, property, ((OP2_TYPE == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), value, binary_op, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
                }
 -              FREE_OP(free_op_data1);
 -      }
 +      } while (0);
  
 +      FREE_OP(free_op_data1);
 +      FREE_OP2();
        FREE_OP1_VAR_PTR();
        /* assign_obj has two opcodes! */
 -      CHECK_EXCEPTION();
 -      ZEND_VM_INC_OPCODE();
 -      ZEND_VM_NEXT_OPCODE();
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
  }
  
 -ZEND_VM_HELPER_EX(zend_binary_assign_op_helper, VAR|UNUSED|CV, CONST|TMP|VAR|UNUSED|CV, int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC))
 +ZEND_VM_HELPER_EX(zend_binary_assign_op_dim_helper, VAR|UNUSED|CV, CONST|TMPVAR|UNUSED|CV, binary_op_type binary_op)
  {
        USE_OPLINE
 -      zend_free_op free_op1, free_op2, free_op_data2, free_op_data1;
 -      zval **var_ptr;
 -      zval *value;
 +      zend_free_op free_op1, free_op2, free_op_data1;
 +      zval *var_ptr, rv;
 +      zval *value, *container, *dim;
  
        SAVE_OPLINE();
 -      switch (opline->extended_value) {
 -              case ZEND_ASSIGN_OBJ:
 -                      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_obj_helper, binary_op, binary_op);
 -                      break;
 -              case ZEND_ASSIGN_DIM: {
 -                              zval **container = GET_OP1_OBJ_ZVAL_PTR_PTR(BP_VAR_RW);
 -
 -                              if (OP1_TYPE == IS_VAR && UNEXPECTED(container == NULL)) {
 -                                      zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
 -                              } else if (UNEXPECTED(Z_TYPE_PP(container) == IS_OBJECT)) {
 -                                      if (OP1_TYPE == IS_VAR && !OP1_FREE) {
 -                                              Z_ADDREF_PP(container);  /* undo the effect of get_obj_zval_ptr_ptr() */
 -                                      }
 -                                      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_obj_helper, binary_op, binary_op);
 -                              } else {
 -                                      zval *dim = GET_OP2_ZVAL_PTR(BP_VAR_R);
 -
 -                                      zend_fetch_dimension_address(&EX_T((opline+1)->op2.var), container, dim, OP2_TYPE, BP_VAR_RW TSRMLS_CC);
 -                                      value = get_zval_ptr((opline+1)->op1_type, &(opline+1)->op1, execute_data, &free_op_data1, BP_VAR_R);
 -                                      var_ptr = _get_zval_ptr_ptr_var((opline+1)->op2.var, execute_data, &free_op_data2 TSRMLS_CC);
 -                              }
 -                      }
 -                      break;
 -              default:
 -                      value = GET_OP2_ZVAL_PTR(BP_VAR_R);
 -                      var_ptr = GET_OP1_ZVAL_PTR_PTR(BP_VAR_RW);
 -                      /* do nothing */
 -                      break;
 +      container = GET_OP1_OBJ_ZVAL_PTR_PTR(BP_VAR_RW);
 +      if (OP1_TYPE == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
 +              FREE_UNFETCHED_OP2();
 +              HANDLE_EXCEPTION();
        }
 -
 -      if (UNEXPECTED(var_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use assign-op operators with overloaded objects nor string offsets");
 +      if (OP1_TYPE == IS_VAR && UNEXPECTED(container == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an array");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
 +              FREE_UNFETCHED_OP2();
 +              HANDLE_EXCEPTION();
        }
  
 -      if (UNEXPECTED(*var_ptr == &EG(error_zval))) {
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -              }
 -              FREE_OP2();
 -              FREE_OP1_VAR_PTR();
 -              CHECK_EXCEPTION();
 -              if (opline->extended_value == ZEND_ASSIGN_DIM) {
 -                      ZEND_VM_INC_OPCODE();
 +      dim = GET_OP2_ZVAL_PTR(BP_VAR_R);
 +
 +      do {
 +              if (OP1_TYPE == IS_UNUSED || UNEXPECTED(Z_TYPE_P(container) != IS_ARRAY)) {
 +                      if (OP1_TYPE != IS_UNUSED) {
 +                              ZVAL_DEREF(container);
 +                      }
 +                      if (OP1_TYPE == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
 +                              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +                              zend_binary_assign_op_obj_dim(container, dim, value, UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL, binary_op);
 +                              break;
 +                      }
                }
 -              ZEND_VM_NEXT_OPCODE();
 -      }
  
 -      SEPARATE_ZVAL_IF_NOT_REF(var_ptr);
 +              zend_fetch_dimension_address_RW(&rv, container, dim, OP2_TYPE);
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +              ZEND_ASSERT(Z_TYPE(rv) == IS_INDIRECT);
 +              var_ptr = Z_INDIRECT(rv);
  
 -      if (UNEXPECTED(Z_TYPE_PP(var_ptr) == IS_OBJECT)
 -         && Z_OBJ_HANDLER_PP(var_ptr, get)
 -         && Z_OBJ_HANDLER_PP(var_ptr, set)) {
 -              /* proxy object */
 -              zval *objval = Z_OBJ_HANDLER_PP(var_ptr, get)(*var_ptr TSRMLS_CC);
 -              Z_ADDREF_P(objval);
 -              binary_op(objval, objval, value TSRMLS_CC);
 -              Z_OBJ_HANDLER_PP(var_ptr, set)(var_ptr, objval TSRMLS_CC);
 -              zval_ptr_dtor(&objval);
 -      } else {
 -              binary_op(*var_ptr, *var_ptr, value TSRMLS_CC);
 +              if (UNEXPECTED(var_ptr == NULL)) {
 +                      zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
 +                      FREE_OP2();
 +                      FREE_OP(free_op_data1);
 +                      FREE_OP1_VAR_PTR();
 +                      HANDLE_EXCEPTION();
 +              }
 +
 +              if (UNEXPECTED(var_ptr == &EG(error_zval))) {
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                      }
 +              } else {
 +                      ZVAL_DEREF(var_ptr);
 +                      SEPARATE_ZVAL_NOREF(var_ptr);
 +
 +                      binary_op(var_ptr, var_ptr, value);
 +
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_COPY(EX_VAR(opline->result.var), var_ptr);
 +                      }
 +              }
 +      } while (0);
 +
 +      FREE_OP2();
 +      FREE_OP(free_op_data1);
 +      FREE_OP1_VAR_PTR();
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
 +}
 +
 +ZEND_VM_HELPER_EX(zend_binary_assign_op_helper, VAR|CV, CONST|TMPVAR|CV, binary_op_type binary_op)
 +{
 +      USE_OPLINE
 +      zend_free_op free_op1, free_op2;
 +      zval *var_ptr;
 +      zval *value;
 +
 +      SAVE_OPLINE();
 +      value = GET_OP2_ZVAL_PTR(BP_VAR_R);
 +      var_ptr = GET_OP1_ZVAL_PTR_PTR(BP_VAR_RW);
 +
 +      if (OP1_TYPE == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
 +              zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
 +              FREE_OP2();
 +              HANDLE_EXCEPTION();
        }
  
 -      if (RETURN_VALUE_USED(opline)) {
 -              PZVAL_LOCK(*var_ptr);
 -              EX_T(opline->result.var).var.ptr = *var_ptr;
 +      if (OP1_TYPE == IS_VAR && UNEXPECTED(var_ptr == &EG(error_zval))) {
 +              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                      ZVAL_NULL(EX_VAR(opline->result.var));
 +              }
 +      } else {
 +              ZVAL_DEREF(var_ptr);
 +              SEPARATE_ZVAL_NOREF(var_ptr);
 +
 +              binary_op(var_ptr, var_ptr, value);
 +
 +              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                      ZVAL_COPY(EX_VAR(opline->result.var), var_ptr);
 +              }
        }
 +
        FREE_OP2();
 +      FREE_OP1_VAR_PTR();
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
 +}
  
 -      if (opline->extended_value == ZEND_ASSIGN_DIM) {
 -              FREE_OP(free_op_data1);
 -              FREE_OP_VAR_PTR(free_op_data2);
 -              FREE_OP1_VAR_PTR();
 -              CHECK_EXCEPTION();
 -              ZEND_VM_INC_OPCODE();
 -      } else {
 -              FREE_OP1_VAR_PTR();
 -              CHECK_EXCEPTION();
 +ZEND_VM_HANDLER(23, ZEND_ASSIGN_ADD, VAR|UNUSED|CV, CONST|TMPVAR|UNUSED|CV)
 +{
 +#if !defined(ZEND_VM_SPEC) || (OP2_TYPE != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if !defined(ZEND_VM_SPEC) || (OP1_TYPE != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, add_function);
        }
 -      ZEND_VM_NEXT_OPCODE();
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, add_function);
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_obj_helper, binary_op, add_function);
 +      }
 +#else
 +      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, add_function);
 +#endif
  }
  
 -ZEND_VM_HANDLER(23, ZEND_ASSIGN_ADD, VAR|UNUSED|CV, CONST|TMP|VAR|UNUSED|CV)
 +ZEND_VM_HANDLER(24, ZEND_ASSIGN_SUB, VAR|UNUSED|CV, CONST|TMPVAR|UNUSED|CV)
  {
 -      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, add_function);
 +#if !defined(ZEND_VM_SPEC) || (OP2_TYPE != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if !defined(ZEND_VM_SPEC) || (OP1_TYPE != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, sub_function);
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, sub_function);
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_obj_helper, binary_op, sub_function);
 +      }
 +#else
 +      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, sub_function);
 +#endif
  }
  
 -ZEND_VM_HANDLER(24, ZEND_ASSIGN_SUB, VAR|UNUSED|CV, CONST|TMP|VAR|UNUSED|CV)
 +ZEND_VM_HANDLER(25, ZEND_ASSIGN_MUL, VAR|UNUSED|CV, CONST|TMPVAR|UNUSED|CV)
  {
 -      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, sub_function);
 +#if !defined(ZEND_VM_SPEC) || (OP2_TYPE != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if !defined(ZEND_VM_SPEC) || (OP1_TYPE != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, mul_function);
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, mul_function);
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_obj_helper, binary_op, mul_function);
 +      }
 +#else
 +      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, mul_function);
 +#endif
  }
  
 -ZEND_VM_HANDLER(25, ZEND_ASSIGN_MUL, VAR|UNUSED|CV, CONST|TMP|VAR|UNUSED|CV)
 +ZEND_VM_HANDLER(26, ZEND_ASSIGN_DIV, VAR|UNUSED|CV, CONST|TMPVAR|UNUSED|CV)
  {
 -      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, mul_function);
 +#if !defined(ZEND_VM_SPEC) || (OP2_TYPE != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if !defined(ZEND_VM_SPEC) || (OP1_TYPE != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, div_function);
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, div_function);
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_obj_helper, binary_op, div_function);
 +      }
 +#else
 +      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, div_function);
 +#endif
  }
  
 -ZEND_VM_HANDLER(26, ZEND_ASSIGN_DIV, VAR|UNUSED|CV, CONST|TMP|VAR|UNUSED|CV)
 +ZEND_VM_HANDLER(27, ZEND_ASSIGN_MOD, VAR|UNUSED|CV, CONST|TMPVAR|UNUSED|CV)
  {
 -      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, div_function);
 +#if !defined(ZEND_VM_SPEC) || (OP2_TYPE != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if !defined(ZEND_VM_SPEC) || (OP1_TYPE != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, mod_function);
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, mod_function);
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_obj_helper, binary_op, mod_function);
 +      }
 +#else
 +      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, mod_function);
 +#endif
  }
  
 -ZEND_VM_HANDLER(27, ZEND_ASSIGN_MOD, VAR|UNUSED|CV, CONST|TMP|VAR|UNUSED|CV)
 +ZEND_VM_HANDLER(28, ZEND_ASSIGN_SL, VAR|UNUSED|CV, CONST|TMPVAR|UNUSED|CV)
  {
 -      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, mod_function);
 +#if !defined(ZEND_VM_SPEC) || (OP2_TYPE != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if !defined(ZEND_VM_SPEC) || (OP1_TYPE != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, shift_left_function);
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, shift_left_function);
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_obj_helper, binary_op, shift_left_function);
 +      }
 +#else
 +      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, shift_left_function);
 +#endif
  }
  
 -ZEND_VM_HANDLER(28, ZEND_ASSIGN_SL, VAR|UNUSED|CV, CONST|TMP|VAR|UNUSED|CV)
 +ZEND_VM_HANDLER(29, ZEND_ASSIGN_SR, VAR|UNUSED|CV, CONST|TMPVAR|UNUSED|CV)
  {
 -      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, shift_left_function);
 +#if !defined(ZEND_VM_SPEC) || (OP2_TYPE != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if !defined(ZEND_VM_SPEC) || (OP1_TYPE != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, shift_right_function);
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, shift_right_function);
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_obj_helper, binary_op, shift_right_function);
 +      }
 +#else
 +      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, shift_right_function);
 +#endif
  }
  
 -ZEND_VM_HANDLER(29, ZEND_ASSIGN_SR, VAR|UNUSED|CV, CONST|TMP|VAR|UNUSED|CV)
 +ZEND_VM_HANDLER(30, ZEND_ASSIGN_CONCAT, VAR|UNUSED|CV, CONST|TMPVAR|UNUSED|CV)
  {
 -      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, shift_right_function);
 +#if !defined(ZEND_VM_SPEC) || (OP2_TYPE != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if !defined(ZEND_VM_SPEC) || (OP1_TYPE != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, concat_function);
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, concat_function);
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_obj_helper, binary_op, concat_function);
 +      }
 +#else
 +      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, concat_function);
 +#endif
  }
  
 -ZEND_VM_HANDLER(30, ZEND_ASSIGN_CONCAT, VAR|UNUSED|CV, CONST|TMP|VAR|UNUSED|CV)
 +ZEND_VM_HANDLER(31, ZEND_ASSIGN_BW_OR, VAR|UNUSED|CV, CONST|TMPVAR|UNUSED|CV)
  {
 -      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, concat_function);
 +#if !defined(ZEND_VM_SPEC) || (OP2_TYPE != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if !defined(ZEND_VM_SPEC) || (OP1_TYPE != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, bitwise_or_function);
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, bitwise_or_function);
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_obj_helper, binary_op, bitwise_or_function);
 +      }
 +#else
 +      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, bitwise_or_function);
 +#endif
  }
  
 -ZEND_VM_HANDLER(31, ZEND_ASSIGN_BW_OR, VAR|UNUSED|CV, CONST|TMP|VAR|UNUSED|CV)
 +ZEND_VM_HANDLER(32, ZEND_ASSIGN_BW_AND, VAR|UNUSED|CV, CONST|TMPVAR|UNUSED|CV)
  {
 -      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, bitwise_or_function);
 +#if !defined(ZEND_VM_SPEC) || (OP2_TYPE != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if !defined(ZEND_VM_SPEC) || (OP1_TYPE != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, bitwise_and_function);
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, bitwise_and_function);
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_obj_helper, binary_op, bitwise_and_function);
 +      }
 +#else
 +      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, bitwise_and_function);
 +#endif
  }
  
 -ZEND_VM_HANDLER(32, ZEND_ASSIGN_BW_AND, VAR|UNUSED|CV, CONST|TMP|VAR|UNUSED|CV)
 +ZEND_VM_HANDLER(33, ZEND_ASSIGN_BW_XOR, VAR|UNUSED|CV, CONST|TMPVAR|UNUSED|CV)
  {
 -      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, bitwise_and_function);
 +#if !defined(ZEND_VM_SPEC) || (OP2_TYPE != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if !defined(ZEND_VM_SPEC) || (OP1_TYPE != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, bitwise_xor_function);
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, bitwise_xor_function);
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_obj_helper, binary_op, bitwise_xor_function);
 +      }
 +#else
 +      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, bitwise_xor_function);
 +#endif
  }
  
 -ZEND_VM_HANDLER(33, ZEND_ASSIGN_BW_XOR, VAR|UNUSED|CV, CONST|TMP|VAR|UNUSED|CV)
 +ZEND_VM_HANDLER(167, ZEND_ASSIGN_POW, VAR|UNUSED|CV, CONST|TMPVAR|UNUSED|CV)
  {
 -      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, bitwise_xor_function);
 +#if !defined(ZEND_VM_SPEC) || (OP2_TYPE != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if !defined(ZEND_VM_SPEC) || (OP1_TYPE != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_helper, binary_op, pow_function);
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, pow_function);
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_obj_helper, binary_op, pow_function);
 +      }
 +#else
 +      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_binary_assign_op_dim_helper, binary_op, pow_function);
 +#endif
  }
  
 -ZEND_VM_HELPER_EX(zend_pre_incdec_property_helper, VAR|UNUSED|CV, CONST|TMP|VAR|CV, incdec_t incdec_op)
 +ZEND_VM_HELPER_EX(zend_pre_incdec_property_helper, VAR|UNUSED|CV, CONST|TMPVAR|CV, int inc)
  {
        USE_OPLINE
        zend_free_op free_op1, free_op2;
 -      zval **object_ptr;
        zval *object;
        zval *property;
 -      zval **retval;
 -      int have_get_ptr = 0;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      object_ptr = GET_OP1_OBJ_ZVAL_PTR_PTR(BP_VAR_RW);
 -      property = GET_OP2_ZVAL_PTR(BP_VAR_R);
 -      retval = &EX_T(opline->result.var).var.ptr;
 +      object = GET_OP1_OBJ_ZVAL_PTR_PTR(BP_VAR_RW);
  
 -      if (OP1_TYPE == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot increment/decrement overloaded objects nor string offsets");
 +      if (OP1_TYPE == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP2();
 +              HANDLE_EXCEPTION();
        }
  
 -      make_real_object(object_ptr TSRMLS_CC); /* this should modify object only if it's empty */
 -      object = *object_ptr;
 +      property = GET_OP2_ZVAL_PTR(BP_VAR_R);
  
 -      if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 -              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +      if (OP1_TYPE == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
                FREE_OP2();
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      *retval = &EG(uninitialized_zval);
 -              }
 -              FREE_OP1_VAR_PTR();
 -              CHECK_EXCEPTION();
 -              ZEND_VM_NEXT_OPCODE();
 +              HANDLE_EXCEPTION();
        }
  
 -      /* here we are sure we are dealing with an object */
 -
 -      if (IS_OP2_TMP_FREE()) {
 -              MAKE_REAL_ZVAL_PTR(property);
 -      }
 +      do {
 +              if (OP1_TYPE != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
 +                              break;
 +                      }
 +              }
  
 -      if (Z_OBJ_HT_P(object)->get_property_ptr_ptr) {
 -              zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((OP2_TYPE == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -              if (zptr != NULL) {                     /* NULL means no success in getting PTR */
 -                      have_get_ptr = 1;
 -                      if (UNEXPECTED(*zptr == &EG(error_zval))) {
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                                      *retval = &EG(uninitialized_zval);
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((OP2_TYPE == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
                                }
                        } else {
-                               ZVAL_DEREF(zptr);
-                               SEPARATE_ZVAL_NOREF(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
 -                              SEPARATE_ZVAL_IF_NOT_REF(zptr);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      SEPARATE_ZVAL_NOREF(zptr);
 -                              incdec_op(*zptr);
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      *retval = *zptr;
 -                                      PZVAL_LOCK(*retval);
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
++                              }
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
                                }
-                       }
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
                        }
 -              }
 -      }
 -
 -      if (!have_get_ptr) {
 -              if (Z_OBJ_HT_P(object)->read_property && Z_OBJ_HT_P(object)->write_property) {
 -                      zval *z;
 -                      
 -                      Z_ADDREF_P(object);
 -                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((OP2_TYPE == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -
 -                      if (UNEXPECTED(Z_TYPE_P(z) == IS_OBJECT) && Z_OBJ_HT_P(z)->get) {
 -                              zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 -
 -                              if (Z_REFCOUNT_P(z) == 0) {
 -                                      GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                      zval_dtor(z);
 -                                      FREE_ZVAL(z);
 -                              }
 -                              z = value;
 -                      }
 -                      Z_ADDREF_P(z);
 -                      SEPARATE_ZVAL_IF_NOT_REF(&z);
 -                      incdec_op(z);
 -                      *retval = z;
 -                      Z_OBJ_HT_P(object)->write_property(object, property, z, ((OP2_TYPE == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      zval_ptr_dtor(&object);
 -                      SELECTIVE_PZVAL_LOCK(*retval, opline);
 -                      zval_ptr_dtor(&z);
                } else {
 -                      zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -                      if (RETURN_VALUE_USED(opline)) {
 -                              PZVAL_LOCK(&EG(uninitialized_zval));
 -                              *retval = &EG(uninitialized_zval);
 -                      }
 +                      zend_pre_incdec_overloaded_property(object, property, ((OP2_TYPE == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
                }
 -      }
 +      } while (0);
  
 -      if (IS_OP2_TMP_FREE()) {
 -              zval_ptr_dtor(&property);
 -      } else {
 -              FREE_OP2();
 -      }
 +      FREE_OP2();
        FREE_OP1_VAR_PTR();
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -ZEND_VM_HANDLER(132, ZEND_PRE_INC_OBJ, VAR|UNUSED|CV, CONST|TMP|VAR|CV)
 +ZEND_VM_HANDLER(132, ZEND_PRE_INC_OBJ, VAR|UNUSED|CV, CONST|TMPVAR|CV)
  {
 -      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_pre_incdec_property_helper, incdec_op, increment_function);
 +      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_pre_incdec_property_helper, inc, 1);
  }
  
 -ZEND_VM_HANDLER(133, ZEND_PRE_DEC_OBJ, VAR|UNUSED|CV, CONST|TMP|VAR|CV)
 +ZEND_VM_HANDLER(133, ZEND_PRE_DEC_OBJ, VAR|UNUSED|CV, CONST|TMPVAR|CV)
  {
 -      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_pre_incdec_property_helper, incdec_op, decrement_function);
 +      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_pre_incdec_property_helper, inc, 0);
  }
  
 -ZEND_VM_HELPER_EX(zend_post_incdec_property_helper, VAR|UNUSED|CV, CONST|TMP|VAR|CV, incdec_t incdec_op)
 +ZEND_VM_HELPER_EX(zend_post_incdec_property_helper, VAR|UNUSED|CV, CONST|TMPVAR|CV, int inc)
  {
        USE_OPLINE
        zend_free_op free_op1, free_op2;
 -      zval **object_ptr;
        zval *object;
        zval *property;
 -      zval *retval;
 -      int have_get_ptr = 0;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      object_ptr = GET_OP1_OBJ_ZVAL_PTR_PTR(BP_VAR_RW);
 -      property = GET_OP2_ZVAL_PTR(BP_VAR_R);
 -      retval = &EX_T(opline->result.var).tmp_var;
 +      object = GET_OP1_OBJ_ZVAL_PTR_PTR(BP_VAR_RW);
  
 -      if (OP1_TYPE == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot increment/decrement overloaded objects nor string offsets");
 +      if (OP1_TYPE == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP2();
 +              HANDLE_EXCEPTION();
        }
  
 -      make_real_object(object_ptr TSRMLS_CC); /* this should modify object only if it's empty */
 -      object = *object_ptr;
 +      property = GET_OP2_ZVAL_PTR(BP_VAR_R);
  
 -      if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 -              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +      if (OP1_TYPE == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
                FREE_OP2();
 -              ZVAL_NULL(retval);
 -              FREE_OP1_VAR_PTR();
 -              CHECK_EXCEPTION();
 -              ZEND_VM_NEXT_OPCODE();
 -      }
 -
 -      /* here we are sure we are dealing with an object */
 -
 -      if (IS_OP2_TMP_FREE()) {
 -              MAKE_REAL_ZVAL_PTR(property);
 +              HANDLE_EXCEPTION();
        }
  
 -      if (Z_OBJ_HT_P(object)->get_property_ptr_ptr) {
 -              zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((OP2_TYPE == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -              if (zptr != NULL) {                     /* NULL means no success in getting PTR */
 -                      have_get_ptr = 1;
 -                      if (UNEXPECTED(*zptr == &EG(error_zval))) {
 -                              ZVAL_NULL(retval);
 -                      } else {
 -                              SEPARATE_ZVAL_IF_NOT_REF(zptr);
 -
 -                              ZVAL_COPY_VALUE(retval, *zptr);
 -                              zendi_zval_copy_ctor(*retval);
 -
 -                              incdec_op(*zptr);
 +      do {
 +              if (OP1_TYPE != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                              break;
                        }
                }
 -      }
  
 -      if (!have_get_ptr) {
 -              if (Z_OBJ_HT_P(object)->read_property && Z_OBJ_HT_P(object)->write_property) {
 -                      zval *z, *z_copy;
 -
 -                      Z_ADDREF_P(object);
 -                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((OP2_TYPE == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      if (UNEXPECTED(Z_TYPE_P(z) == IS_OBJECT) && Z_OBJ_HT_P(z)->get) {
 -                              zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 +              /* here we are sure we are dealing with an object */
  
 -                              if (Z_REFCOUNT_P(z) == 0) {
 -                                      GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                      zval_dtor(z);
 -                                      FREE_ZVAL(z);
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((OP2_TYPE == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
-                               }
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                      } else {
-                               ZVAL_DEREF(zptr);
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               zval_opt_copy_ctor(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      zval_opt_copy_ctor(zptr);
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
                                }
 -                              z = value;
                        }
 -                      ZVAL_COPY_VALUE(retval, z);
 -                      zendi_zval_copy_ctor(*retval);
 -                      ALLOC_ZVAL(z_copy);
 -                      INIT_PZVAL_COPY(z_copy, z);
 -                      zendi_zval_copy_ctor(*z_copy);
 -                      incdec_op(z_copy);
 -                      Z_ADDREF_P(z);
 -                      Z_OBJ_HT_P(object)->write_property(object, property, z_copy, ((OP2_TYPE == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      zval_ptr_dtor(&object);
 -                      zval_ptr_dtor(&z_copy);
 -                      zval_ptr_dtor(&z);
                } else {
 -                      zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -                      ZVAL_NULL(retval);
 +                      zend_post_incdec_overloaded_property(object, property, ((OP2_TYPE == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, EX_VAR(opline->result.var));
                }
 -      }
 +      } while (0);
  
 -      if (IS_OP2_TMP_FREE()) {
 -              zval_ptr_dtor(&property);
 -      } else {
 -              FREE_OP2();
 -      }
 +      FREE_OP2();
        FREE_OP1_VAR_PTR();
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -ZEND_VM_HANDLER(134, ZEND_POST_INC_OBJ, VAR|UNUSED|CV, CONST|TMP|VAR|CV)
 +ZEND_VM_HANDLER(134, ZEND_POST_INC_OBJ, VAR|UNUSED|CV, CONST|TMPVAR|CV)
  {
 -      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_post_incdec_property_helper, incdec_op, increment_function);
 +      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_post_incdec_property_helper, inc, 1);
  }
  
 -ZEND_VM_HANDLER(135, ZEND_POST_DEC_OBJ, VAR|UNUSED|CV, CONST|TMP|VAR|CV)
 +ZEND_VM_HANDLER(135, ZEND_POST_DEC_OBJ, VAR|UNUSED|CV, CONST|TMPVAR|CV)
  {
 -      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_post_incdec_property_helper, incdec_op, decrement_function);
 +      ZEND_VM_DISPATCH_TO_HELPER_EX(zend_post_incdec_property_helper, inc, 0);
  }
  
  ZEND_VM_HANDLER(34, ZEND_PRE_INC, VAR|CV, ANY)
index 8b62a834a46f8b15ec4a791c1ed256b92e96d5f0,df47bea982f438dc3941454e346bb196ba268669..c719aa280854a8c2b214d7b18c52ed8f7b5d3fd2
@@@ -16465,156 -14351,144 +16465,161 @@@ static ZEND_OPCODE_HANDLER_RET ZEND_FAS
  {
        USE_OPLINE
        zend_free_op free_op1;
 +      zval *op1, *op2;
 +      int result;
  
        SAVE_OPLINE();
 -      is_identical_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
 -              opline->op2.zv TSRMLS_CC);
 -      zval_ptr_dtor_nogc(&free_op1.var);
 +      op1 = _get_zval_ptr_var_deref(opline->op1.var, execute_data, &free_op1);
 +      op2 = EX_CONSTANT(opline->op2);
 +      result = fast_is_not_identical_function(op1, op2);
 +      zval_ptr_dtor_nogc(free_op1);
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      ZEND_VM_SMART_BRANCH(result, 1);
 +      ZVAL_BOOL(EX_VAR(opline->result.var), result);
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_IS_NOT_IDENTICAL_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_obj_helper_SPEC_VAR_CONST(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op1;
 -      zval *result = &EX_T(opline->result.var).tmp_var;
 +      zend_free_op free_op1, free_op_data1;
 +      zval *object;
 +      zval *property;
 +      zval *value;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      is_identical_function(result,
 -              _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
 -              opline->op2.zv TSRMLS_CC);
 -      Z_LVAL_P(result) = !Z_LVAL_P(result);
 -      zval_ptr_dtor_nogc(&free_op1.var);
 +      object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +      if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -static int ZEND_FASTCALL  ZEND_IS_EQUAL_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op1;
 -      zval *result = &EX_T(opline->result.var).tmp_var;
 +              HANDLE_EXCEPTION();
 +      }
  
 -      SAVE_OPLINE();
 -      ZVAL_BOOL(result, fast_equal_function(result,
 -              _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
 -              opline->op2.zv TSRMLS_CC));
 -      zval_ptr_dtor_nogc(&free_op1.var);
 +      property = EX_CONSTANT(opline->op2);
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +      if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an object");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -static int ZEND_FASTCALL  ZEND_IS_NOT_EQUAL_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op1;
 -      zval *result = &EX_T(opline->result.var).tmp_var;
 +              HANDLE_EXCEPTION();
 +      }
  
 -      SAVE_OPLINE();
 -      ZVAL_BOOL(result, fast_not_equal_function(result,
 -              _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
 -              opline->op2.zv TSRMLS_CC));
 -      zval_ptr_dtor_nogc(&free_op1.var);
 +      do {
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +              if (IS_VAR != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to assign property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
 +                              break;
 +                      }
 +              }
  
 -static int ZEND_FASTCALL  ZEND_IS_SMALLER_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op1;
 -      zval *result = &EX_T(opline->result.var).tmp_var;
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
++                              }
++                      } else {
++                              ZVAL_DEREF(zptr);
++                              SEPARATE_ZVAL_NOREF(zptr);
  
-                       ZVAL_DEREF(zptr);
-                       SEPARATE_ZVAL_NOREF(zptr);
-                       binary_op(zptr, zptr, value);
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 -      SAVE_OPLINE();
 -      ZVAL_BOOL(result, fast_is_smaller_function(result,
 -              _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
 -              opline->op2.zv TSRMLS_CC));
 -      zval_ptr_dtor_nogc(&free_op1.var);
++                              binary_op(zptr, zptr, value);
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
++                              }
 +                      }
 +              } else {
 +                      zend_assign_op_overloaded_property(object, property, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), value, binary_op, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
 +              }
 +      } while (0);
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      FREE_OP(free_op_data1);
 +
 +      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +      /* assign_obj has two opcodes! */
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
  }
  
 -static int ZEND_FASTCALL  ZEND_IS_SMALLER_OR_EQUAL_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_dim_helper_SPEC_VAR_CONST(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op1;
 -      zval *result = &EX_T(opline->result.var).tmp_var;
 +      zend_free_op free_op1, free_op_data1;
 +      zval *var_ptr, rv;
 +      zval *value, *container, *dim;
  
        SAVE_OPLINE();
 -      ZVAL_BOOL(result, fast_is_smaller_or_equal_function(result,
 -              _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
 -              opline->op2.zv TSRMLS_CC));
 -      zval_ptr_dtor_nogc(&free_op1.var);
 +      container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
 +      if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +              HANDLE_EXCEPTION();
 +      }
 +      if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an array");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -static int ZEND_FASTCALL  ZEND_BW_OR_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op1;
 +              HANDLE_EXCEPTION();
 +      }
  
 -      SAVE_OPLINE();
 -      bitwise_or_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
 -              opline->op2.zv TSRMLS_CC);
 -      zval_ptr_dtor_nogc(&free_op1.var);
 +      dim = EX_CONSTANT(opline->op2);
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +      do {
 +              if (IS_VAR == IS_UNUSED || UNEXPECTED(Z_TYPE_P(container) != IS_ARRAY)) {
 +                      if (IS_VAR != IS_UNUSED) {
 +                              ZVAL_DEREF(container);
 +                      }
 +                      if (IS_VAR == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
 +                              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +                              zend_binary_assign_op_obj_dim(container, dim, value, UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL, binary_op);
 +                              break;
 +                      }
 +              }
  
 -static int ZEND_FASTCALL  ZEND_BW_AND_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op1;
 +              zend_fetch_dimension_address_RW(&rv, container, dim, IS_CONST);
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +              ZEND_ASSERT(Z_TYPE(rv) == IS_INDIRECT);
 +              var_ptr = Z_INDIRECT(rv);
  
 -      SAVE_OPLINE();
 -      bitwise_and_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
 -              opline->op2.zv TSRMLS_CC);
 -      zval_ptr_dtor_nogc(&free_op1.var);
 +              if (UNEXPECTED(var_ptr == NULL)) {
 +                      zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +                      FREE_OP(free_op_data1);
 +                      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +                      HANDLE_EXCEPTION();
 +              }
  
 -static int ZEND_FASTCALL  ZEND_BW_XOR_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op1;
 +              if (UNEXPECTED(var_ptr == &EG(error_zval))) {
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                      }
 +              } else {
 +                      ZVAL_DEREF(var_ptr);
 +                      SEPARATE_ZVAL_NOREF(var_ptr);
  
 -      SAVE_OPLINE();
 -      bitwise_xor_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
 -              opline->op2.zv TSRMLS_CC);
 -      zval_ptr_dtor_nogc(&free_op1.var);
 +                      binary_op(var_ptr, var_ptr, value);
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_COPY(EX_VAR(opline->result.var), var_ptr);
 +                      }
 +              }
 +      } while (0);
 +
 +      FREE_OP(free_op_data1);
 +      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
  }
  
 -static int ZEND_FASTCALL  ZEND_BOOL_XOR_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_helper_SPEC_VAR_CONST(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
        zend_free_op free_op1;
@@@ -16894,159 -14768,387 +16899,166 @@@ static ZEND_OPCODE_HANDLER_RET ZEND_FAS
  {
        USE_OPLINE
        zend_free_op free_op1;
 -      zval **object_ptr;
        zval *object;
        zval *property;
 -      zval **retval;
 -      int have_get_ptr = 0;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      object_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -      property = opline->op2.zv;
 -      retval = &EX_T(opline->result.var).var.ptr;
 -
 -      if (IS_VAR == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot increment/decrement overloaded objects nor string offsets");
 -      }
 -
 -      make_real_object(object_ptr TSRMLS_CC); /* this should modify object only if it's empty */
 -      object = *object_ptr;
 +      object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
  
 -      if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 -              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +      if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
  
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      *retval = &EG(uninitialized_zval);
 -              }
 -              if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -              CHECK_EXCEPTION();
 -              ZEND_VM_NEXT_OPCODE();
 +              HANDLE_EXCEPTION();
        }
  
 -      /* here we are sure we are dealing with an object */
 +      property = EX_CONSTANT(opline->op2);
  
 -      if (0) {
 -              MAKE_REAL_ZVAL_PTR(property);
 -      }
 +      if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
  
 -      if (Z_OBJ_HT_P(object)->get_property_ptr_ptr) {
 -              zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CONST == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -              if (zptr != NULL) {                     /* NULL means no success in getting PTR */
 -                      have_get_ptr = 1;
 -                      if (UNEXPECTED(*zptr == &EG(error_zval))) {
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                                      *retval = &EG(uninitialized_zval);
 -                              }
 -                      } else {
 -                              SEPARATE_ZVAL_IF_NOT_REF(zptr);
 +              HANDLE_EXCEPTION();
 +      }
  
 -                              incdec_op(*zptr);
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      *retval = *zptr;
 -                                      PZVAL_LOCK(*retval);
 +      do {
 +              if (IS_VAR != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
                                }
 +                              break;
                        }
                }
 -      }
 -
 -      if (!have_get_ptr) {
 -              if (Z_OBJ_HT_P(object)->read_property && Z_OBJ_HT_P(object)->write_property) {
 -                      zval *z;
  
 -                      Z_ADDREF_P(object);
 -                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((IS_CONST == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -
 -                      if (UNEXPECTED(Z_TYPE_P(z) == IS_OBJECT) && Z_OBJ_HT_P(z)->get) {
 -                              zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
 +                      } else {
-                               ZVAL_DEREF(zptr);
-                               SEPARATE_ZVAL_NOREF(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      SEPARATE_ZVAL_NOREF(zptr);
 -                              if (Z_REFCOUNT_P(z) == 0) {
 -                                      GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                      zval_dtor(z);
 -                                      FREE_ZVAL(z);
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
++                              }
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
                                }
-                       }
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 -                              z = value;
                        }
 -                      Z_ADDREF_P(z);
 -                      SEPARATE_ZVAL_IF_NOT_REF(&z);
 -                      incdec_op(z);
 -                      *retval = z;
 -                      Z_OBJ_HT_P(object)->write_property(object, property, z, ((IS_CONST == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      zval_ptr_dtor(&object);
 -                      SELECTIVE_PZVAL_LOCK(*retval, opline);
 -                      zval_ptr_dtor(&z);
                } else {
 -                      zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -                      if (RETURN_VALUE_USED(opline)) {
 -                              PZVAL_LOCK(&EG(uninitialized_zval));
 -                              *retval = &EG(uninitialized_zval);
 -                      }
 +                      zend_pre_incdec_overloaded_property(object, property, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
                }
 -      }
 -
 -      if (0) {
 -              zval_ptr_dtor(&property);
 -      } else {
 +      } while (0);
  
 -      }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_PRE_INC_OBJ_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_INC_OBJ_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_pre_incdec_property_helper_SPEC_VAR_CONST(increment_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_VAR_CONST(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_PRE_DEC_OBJ_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_DEC_OBJ_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_pre_incdec_property_helper_SPEC_VAR_CONST(decrement_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_VAR_CONST(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL zend_post_incdec_property_helper_SPEC_VAR_CONST(incdec_t incdec_op, ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_post_incdec_property_helper_SPEC_VAR_CONST(int inc ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
        zend_free_op free_op1;
 -      zval **object_ptr;
        zval *object;
        zval *property;
 -      zval *retval;
 -      int have_get_ptr = 0;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      object_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -      property = opline->op2.zv;
 -      retval = &EX_T(opline->result.var).tmp_var;
 -
 -      if (IS_VAR == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot increment/decrement overloaded objects nor string offsets");
 -      }
 -
 -      make_real_object(object_ptr TSRMLS_CC); /* this should modify object only if it's empty */
 -      object = *object_ptr;
 -
 -      if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 -              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -
 -              ZVAL_NULL(retval);
 -              if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -              CHECK_EXCEPTION();
 -              ZEND_VM_NEXT_OPCODE();
 -      }
 +      object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
  
 -      /* here we are sure we are dealing with an object */
 +      if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
  
 -      if (0) {
 -              MAKE_REAL_ZVAL_PTR(property);
 +              HANDLE_EXCEPTION();
        }
  
 -      if (Z_OBJ_HT_P(object)->get_property_ptr_ptr) {
 -              zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CONST == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -              if (zptr != NULL) {                     /* NULL means no success in getting PTR */
 -                      have_get_ptr = 1;
 -                      if (UNEXPECTED(*zptr == &EG(error_zval))) {
 -                              ZVAL_NULL(retval);
 -                      } else {
 -                              SEPARATE_ZVAL_IF_NOT_REF(zptr);
 +      property = EX_CONSTANT(opline->op2);
  
 -                              ZVAL_COPY_VALUE(retval, *zptr);
 -                              zendi_zval_copy_ctor(*retval);
 +      if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
  
 -                              incdec_op(*zptr);
 -                      }
 -              }
 +              HANDLE_EXCEPTION();
        }
  
 -      if (!have_get_ptr) {
 -              if (Z_OBJ_HT_P(object)->read_property && Z_OBJ_HT_P(object)->write_property) {
 -                      zval *z, *z_copy;
 -
 -                      Z_ADDREF_P(object);
 -                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((IS_CONST == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      if (UNEXPECTED(Z_TYPE_P(z) == IS_OBJECT) && Z_OBJ_HT_P(z)->get) {
 -                              zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 -
 -                              if (Z_REFCOUNT_P(z) == 0) {
 -                                      GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                      zval_dtor(z);
 -                                      FREE_ZVAL(z);
 -                              }
 -                              z = value;
 +      do {
 +              if (IS_VAR != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                              break;
                        }
 -                      ZVAL_COPY_VALUE(retval, z);
 -                      zendi_zval_copy_ctor(*retval);
 -                      ALLOC_ZVAL(z_copy);
 -                      INIT_PZVAL_COPY(z_copy, z);
 -                      zendi_zval_copy_ctor(*z_copy);
 -                      incdec_op(z_copy);
 -                      Z_ADDREF_P(z);
 -                      Z_OBJ_HT_P(object)->write_property(object, property, z_copy, ((IS_CONST == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      zval_ptr_dtor(&object);
 -                      zval_ptr_dtor(&z_copy);
 -                      zval_ptr_dtor(&z);
 -              } else {
 -                      zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -                      ZVAL_NULL(retval);
                }
 -      }
 -
 -      if (0) {
 -              zval_ptr_dtor(&property);
 -      } else {
 -
 -      }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 -
 -static int ZEND_FASTCALL  ZEND_POST_INC_OBJ_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_post_incdec_property_helper_SPEC_VAR_CONST(increment_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 -
 -static int ZEND_FASTCALL  ZEND_POST_DEC_OBJ_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_post_incdec_property_helper_SPEC_VAR_CONST(decrement_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 -
 -static int ZEND_FASTCALL zend_fetch_var_address_helper_SPEC_VAR_CONST(int type, ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op1;
 -      zval *varname;
 -      zval **retval;
 -      zval tmp_varname;
 -      HashTable *target_symbol_table;
 -      ulong hash_value;
  
 -      SAVE_OPLINE();
 -      varname = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -
 -      if (IS_VAR != IS_CONST && UNEXPECTED(Z_TYPE_P(varname) != IS_STRING)) {
 -              ZVAL_COPY_VALUE(&tmp_varname, varname);
 -              zval_copy_ctor(&tmp_varname);
 -              Z_SET_REFCOUNT(tmp_varname, 1);
 -              Z_UNSET_ISREF(tmp_varname);
 -              convert_to_string(&tmp_varname);
 -              varname = &tmp_varname;
 -      }
 -
 -      if (IS_CONST != IS_UNUSED) {
 -              zend_class_entry *ce;
 +              /* here we are sure we are dealing with an object */
  
 -              if (IS_CONST == IS_CONST) {
 -                      if (CACHED_PTR(opline->op2.literal->cache_slot)) {
 -                              ce = CACHED_PTR(opline->op2.literal->cache_slot);
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
-                               }
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              ZVAL_NULL(EX_VAR(opline->result.var));
                        } else {
-                               ZVAL_DEREF(zptr);
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               zval_opt_copy_ctor(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
 -                              ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, 0 TSRMLS_CC);
 -                              if (UNEXPECTED(ce == NULL)) {
 -                                      if (IS_VAR != IS_CONST && varname == &tmp_varname) {
 -                                              zval_dtor(&tmp_varname);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      zval_opt_copy_ctor(zptr);
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
+                                       }
 -                                      zval_ptr_dtor_nogc(&free_op1.var);
 -                                      CHECK_EXCEPTION();
 -                                      ZEND_VM_NEXT_OPCODE();
                                }
 -                              CACHE_PTR(opline->op2.literal->cache_slot, ce);
                        }
                } else {
 -                      ce = EX_T(opline->op2.var).class_entry;
 -              }
 -              retval = zend_std_get_static_property(ce, Z_STRVAL_P(varname), Z_STRLEN_P(varname), 0, ((IS_VAR == IS_CONST) ? opline->op1.literal : NULL) TSRMLS_CC);
 -              zval_ptr_dtor_nogc(&free_op1.var);
 -      } else {
 -              target_symbol_table = zend_get_target_symbol_table(opline->extended_value & ZEND_FETCH_TYPE_MASK TSRMLS_CC);
 -/*
 -              if (!target_symbol_table) {
 -                      CHECK_EXCEPTION();
 -                      ZEND_VM_NEXT_OPCODE();
 -              }
 -*/
 -              if (IS_VAR == IS_CONST) {
 -                      hash_value = Z_HASH_P(varname);
 -              } else {
 -                      hash_value = str_hash(Z_STRVAL_P(varname), Z_STRLEN_P(varname));
 -              }
 -
 -              if (zend_hash_quick_find(target_symbol_table, Z_STRVAL_P(varname), Z_STRLEN_P(varname)+1, hash_value, (void **) &retval) == FAILURE) {
 -                      switch (type) {
 -                              case BP_VAR_R:
 -                              case BP_VAR_UNSET:
 -                                      zend_error(E_NOTICE,"Undefined variable: %s", Z_STRVAL_P(varname));
 -                                      /* break missing intentionally */
 -                              case BP_VAR_IS:
 -                                      retval = &EG(uninitialized_zval_ptr);
 -                                      break;
 -                              case BP_VAR_RW:
 -                                      zend_error(E_NOTICE,"Undefined variable: %s", Z_STRVAL_P(varname));
 -                                      /* break missing intentionally */
 -                              case BP_VAR_W:
 -                                      Z_ADDREF_P(&EG(uninitialized_zval));
 -                                      zend_hash_quick_update(target_symbol_table, Z_STRVAL_P(varname), Z_STRLEN_P(varname)+1, hash_value, &EG(uninitialized_zval_ptr), sizeof(zval *), (void **) &retval);
 -                                      break;
 -                              EMPTY_SWITCH_DEFAULT_CASE()
 -                      }
 -              }
 -              switch (opline->extended_value & ZEND_FETCH_TYPE_MASK) {
 -                      case ZEND_FETCH_GLOBAL:
 -                              if (IS_VAR != IS_TMP_VAR) {
 -                                      zval_ptr_dtor_nogc(&free_op1.var);
 -                              }
 -                              break;
 -                      case ZEND_FETCH_LOCAL:
 -                              zval_ptr_dtor_nogc(&free_op1.var);
 -                              break;
 -                      case ZEND_FETCH_STATIC:
 -                              zval_update_constant(retval, 1 TSRMLS_CC);
 -                              break;
 -                      case ZEND_FETCH_GLOBAL_LOCK:
 -                              if (IS_VAR == IS_VAR && !free_op1.var) {
 -                                      PZVAL_LOCK(*EX_T(opline->op1.var).var.ptr_ptr);
 -                              }
 -                              break;
 -              }
 -      }
 -
 -
 -      if (IS_VAR != IS_CONST && varname == &tmp_varname) {
 -              zval_dtor(&tmp_varname);
 -      }
 -      if (opline->extended_value & ZEND_FETCH_MAKE_REF) {
 -              SEPARATE_ZVAL_TO_MAKE_IS_REF(retval);
 -      }
 -      PZVAL_LOCK(*retval);
 -      switch (type) {
 -              case BP_VAR_R:
 -              case BP_VAR_IS:
 -                      EX_T(opline->result.var).var.ptr = *retval;
 -                      break;
 -              case BP_VAR_UNSET: {
 -                      zend_free_op free_res;
 -
 -                      PZVAL_UNLOCK(*retval, &free_res);
 -                      if (retval != &EG(uninitialized_zval_ptr)) {
 -                              SEPARATE_ZVAL_IF_NOT_REF(retval);
 -                      }
 -                      PZVAL_LOCK(*retval);
 -                      FREE_OP_VAR_PTR(free_res);
 +                      zend_post_incdec_overloaded_property(object, property, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, EX_VAR(opline->result.var));
                }
 -              /* break missing intentionally */
 -              default:
 -                      EX_T(opline->result.var).var.ptr_ptr = retval;
 -                      break;
 -      }
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 -
 -static int ZEND_FASTCALL  ZEND_FETCH_R_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_fetch_var_address_helper_SPEC_VAR_CONST(BP_VAR_R, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 -
 -static int ZEND_FASTCALL  ZEND_FETCH_W_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_fetch_var_address_helper_SPEC_VAR_CONST(BP_VAR_W, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 -
 -static int ZEND_FASTCALL  ZEND_FETCH_RW_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_fetch_var_address_helper_SPEC_VAR_CONST(BP_VAR_RW, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 -
 -static int ZEND_FASTCALL  ZEND_FETCH_FUNC_ARG_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 +      } while (0);
  
 -      return zend_fetch_var_address_helper_SPEC_VAR_CONST(zend_is_by_ref_func_arg_fetch(opline, EX(call) TSRMLS_CC) ? BP_VAR_W : BP_VAR_R, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_UNSET_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_INC_OBJ_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_fetch_var_address_helper_SPEC_VAR_CONST(BP_VAR_UNSET, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_VAR_CONST(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_IS_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_DEC_OBJ_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_fetch_var_address_helper_SPEC_VAR_CONST(BP_VAR_IS, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_VAR_CONST(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_DIM_R_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_DIM_W_SPEC_VAR_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
        zend_free_op free_op1;
@@@ -19726,99 -17705,104 +19738,104 @@@ static ZEND_OPCODE_HANDLER_RET ZEND_FAS
                }
  
                /* here we are sure we are dealing with an object */
 -              retval = Z_OBJ_HT_P(container)->read_property(container, offset, BP_VAR_R, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -
 -              PZVAL_LOCK(retval);
 -              EX_T(opline->result.var).var.ptr = retval;
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
++                              }
++                      } else {
++                              ZVAL_DEREF(zptr);
++                              SEPARATE_ZVAL_NOREF(zptr);
  
-                       ZVAL_DEREF(zptr);
-                       SEPARATE_ZVAL_NOREF(zptr);
-                       binary_op(zptr, zptr, value);
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 -              if (1) {
 -                      zval_ptr_dtor(&offset);
++                              binary_op(zptr, zptr, value);
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
++                              }
 +                      }
                } else {
 -                      zval_dtor(free_op2.var);
 +                      zend_assign_op_overloaded_property(object, property, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), value, binary_op, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
                }
 -      }
 +      } while (0);
  
 -      zval_ptr_dtor_nogc(&free_op1.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +      FREE_OP(free_op_data1);
  
 -static int ZEND_FASTCALL  ZEND_FETCH_OBJ_R_SPEC_VAR_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_fetch_property_address_read_helper_SPEC_VAR_TMP(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +      /* assign_obj has two opcodes! */
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_OBJ_W_SPEC_VAR_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_dim_helper_SPEC_VAR_CV(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op1, free_op2;
 -      zval *property;
 -      zval **container;
 +      zend_free_op free_op1, free_op_data1;
 +      zval *var_ptr, rv;
 +      zval *value, *container, *dim;
  
        SAVE_OPLINE();
 -      property = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 +      container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
 +      if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -      if (1) {
 -              MAKE_REAL_ZVAL_PTR(property);
 +              HANDLE_EXCEPTION();
        }
 -      container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
        if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an object");
 -      }
 +              zend_throw_error(NULL, "Cannot use string offset as an array");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -      zend_fetch_property_address(&EX_T(opline->result.var), container, property, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL), BP_VAR_W TSRMLS_CC);
 -      if (1) {
 -              zval_ptr_dtor(&property);
 -      } else {
 -              zval_dtor(free_op2.var);
 -      }
 -      if (IS_VAR == IS_VAR && (free_op1.var != NULL) && READY_TO_DESTROY(free_op1.var)) {
 -              EXTRACT_ZVAL_PTR(&EX_T(opline->result.var));
 +              HANDLE_EXCEPTION();
        }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
  
 -      /* We are going to assign the result by reference */
 -      if (opline->extended_value & ZEND_FETCH_MAKE_REF) {
 -              zval **retval_ptr = EX_T(opline->result.var).var.ptr_ptr;
 +      dim = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
  
 -              Z_DELREF_PP(retval_ptr);
 -              SEPARATE_ZVAL_TO_MAKE_IS_REF(retval_ptr);
 -              Z_ADDREF_PP(retval_ptr);
 -              EX_T(opline->result.var).var.ptr = *EX_T(opline->result.var).var.ptr_ptr;
 -              EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr;
 -      }
 +      do {
 +              if (IS_VAR == IS_UNUSED || UNEXPECTED(Z_TYPE_P(container) != IS_ARRAY)) {
 +                      if (IS_VAR != IS_UNUSED) {
 +                              ZVAL_DEREF(container);
 +                      }
 +                      if (IS_VAR == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
 +                              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +                              zend_binary_assign_op_obj_dim(container, dim, value, UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL, binary_op);
 +                              break;
 +                      }
 +              }
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +              zend_fetch_dimension_address_RW(&rv, container, dim, IS_CV);
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +              ZEND_ASSERT(Z_TYPE(rv) == IS_INDIRECT);
 +              var_ptr = Z_INDIRECT(rv);
  
 -static int ZEND_FASTCALL  ZEND_FETCH_OBJ_RW_SPEC_VAR_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op1, free_op2;
 -      zval *property;
 -      zval **container;
 +              if (UNEXPECTED(var_ptr == NULL)) {
 +                      zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
  
 -      SAVE_OPLINE();
 -      property = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 -      container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 +                      FREE_OP(free_op_data1);
 +                      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +                      HANDLE_EXCEPTION();
 +              }
  
 -      if (1) {
 -              MAKE_REAL_ZVAL_PTR(property);
 -      }
 -      if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an object");
 -      }
 -      zend_fetch_property_address(&EX_T(opline->result.var), container, property, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL), BP_VAR_RW TSRMLS_CC);
 -      if (1) {
 -              zval_ptr_dtor(&property);
 -      } else {
 -              zval_dtor(free_op2.var);
 -      }
 -      if (IS_VAR == IS_VAR && (free_op1.var != NULL) && READY_TO_DESTROY(free_op1.var)) {
 -              EXTRACT_ZVAL_PTR(&EX_T(opline->result.var));
 -      }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +              if (UNEXPECTED(var_ptr == &EG(error_zval))) {
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                      }
 +              } else {
 +                      ZVAL_DEREF(var_ptr);
 +                      SEPARATE_ZVAL_NOREF(var_ptr);
 +
 +                      binary_op(var_ptr, var_ptr, value);
 +
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_COPY(EX_VAR(opline->result.var), var_ptr);
 +                      }
 +              }
 +      } while (0);
 +
 +      FREE_OP(free_op_data1);
 +      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_OBJ_IS_SPEC_VAR_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_helper_SPEC_VAR_CV(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
        zend_free_op free_op1;
                }
        }
  
 -      zval_ptr_dtor_nogc(&free_op1.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_OBJ_FUNC_ARG_SPEC_VAR_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_ADD_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || (IS_CV != IS_UNUSED)
        USE_OPLINE
  
 -      if (zend_is_by_ref_func_arg_fetch(opline, EX(call) TSRMLS_CC)) {
 -              /* Behave like FETCH_OBJ_W */
 -              zend_free_op free_op1, free_op2;
 -              zval *property;
 -              zval **container;
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_CV(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_CV(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -              SAVE_OPLINE();
 -              property = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 -              container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SUB_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -              if (1) {
 -                      MAKE_REAL_ZVAL_PTR(property);
 -              }
 -              if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
 -                      zend_error_noreturn(E_ERROR, "Cannot use string offset as an object");
 -              }
 -              zend_fetch_property_address(&EX_T(opline->result.var), container, property, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL), BP_VAR_W TSRMLS_CC);
 -              if (1) {
 -                      zval_ptr_dtor(&property);
 -              } else {
 -                      zval_dtor(free_op2.var);
 -              }
 -              if (IS_VAR == IS_VAR && (free_op1.var != NULL) && READY_TO_DESTROY(free_op1.var)) {
 -                      EXTRACT_ZVAL_PTR(&EX_T(opline->result.var));
 -              }
 -              if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -              CHECK_EXCEPTION();
 -              ZEND_VM_NEXT_OPCODE();
 -      } else {
 -              return zend_fetch_property_address_read_helper_SPEC_VAR_TMP(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_CV(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_CV(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_OBJ_UNSET_SPEC_VAR_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_MUL_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || (IS_CV != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op1, free_op2, free_res;
 -      zval **container;
 -      zval *property;
 -
 -      SAVE_OPLINE();
 -      container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -      property = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
  
 -      if (IS_VAR == IS_CV) {
 -              if (container != &EG(uninitialized_zval_ptr)) {
 -                      SEPARATE_ZVAL_IF_NOT_REF(container);
 -              }
 -      }
 -      if (1) {
 -              MAKE_REAL_ZVAL_PTR(property);
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_CV(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an object");
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_CV(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      zend_fetch_property_address(&EX_T(opline->result.var), container, property, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL), BP_VAR_UNSET TSRMLS_CC);
 -      if (1) {
 -              zval_ptr_dtor(&property);
 -      } else {
 -              zval_dtor(free_op2.var);
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
 +
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_DIV_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_CV(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      if (IS_VAR == IS_VAR && (free_op1.var != NULL) && READY_TO_DESTROY(free_op1.var)) {
 -              EXTRACT_ZVAL_PTR(&EX_T(opline->result.var));
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_CV(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
 +
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_MOD_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -      PZVAL_UNLOCK(*EX_T(opline->result.var).var.ptr_ptr, &free_res);
 -      if (EX_T(opline->result.var).var.ptr_ptr != &EG(uninitialized_zval_ptr)) {
 -              SEPARATE_ZVAL_IF_NOT_REF(EX_T(opline->result.var).var.ptr_ptr);
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_CV(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      PZVAL_LOCK(*EX_T(opline->result.var).var.ptr_ptr);
 -      FREE_OP_VAR_PTR(free_res);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_CV(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_OBJ_SPEC_VAR_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SL_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || (IS_CV != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op1, free_op2;
 -      zval **object_ptr;
 -      zval *property_name;
 -
 -      SAVE_OPLINE();
 -      object_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -      property_name = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
  
 -      if (1) {
 -              MAKE_REAL_ZVAL_PTR(property_name);
 -      }
 -      if (IS_VAR == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_CV(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      zend_assign_to_object(RETURN_VALUE_USED(opline)?&EX_T(opline->result.var).var.ptr:NULL, object_ptr, property_name, (opline+1)->op1_type, &(opline+1)->op1, execute_data, ZEND_ASSIGN_OBJ, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -      if (1) {
 -              zval_ptr_dtor(&property_name);
 -      } else {
 -              zval_dtor(free_op2.var);
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_CV(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -      /* assign_obj has two opcodes! */
 -      CHECK_EXCEPTION();
 -      ZEND_VM_INC_OPCODE();
 -      ZEND_VM_NEXT_OPCODE();
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_DIM_SPEC_VAR_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SR_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || (IS_CV != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op1;
 -      zval **object_ptr;
  
 -      SAVE_OPLINE();
 -      object_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -
 -      if (IS_VAR == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_CV(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      if (Z_TYPE_PP(object_ptr) == IS_OBJECT) {
 -              zend_free_op free_op2;
 -              zval *property_name = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_CV(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -              if (1) {
 -                      MAKE_REAL_ZVAL_PTR(property_name);
 -              }
 -              zend_assign_to_object(RETURN_VALUE_USED(opline)?&EX_T(opline->result.var).var.ptr:NULL, object_ptr, property_name, (opline+1)->op1_type, &(opline+1)->op1, execute_data, ZEND_ASSIGN_DIM, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -              if (1) {
 -                      zval_ptr_dtor(&property_name);
 -              } else {
 -                      zval_dtor(free_op2.var);
 -              }
 -      } else {
 -              zend_free_op free_op2, free_op_data1, free_op_data2;
 -              zval *value;
 -              zval *dim = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 -              zval **variable_ptr_ptr;
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_CONCAT_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -              zend_fetch_dimension_address(&EX_T((opline+1)->op2.var), object_ptr, dim, IS_TMP_VAR, BP_VAR_W TSRMLS_CC);
 -              zval_dtor(free_op2.var);
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_CV(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_CV(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -              value = get_zval_ptr((opline+1)->op1_type, &(opline+1)->op1, execute_data, &free_op_data1, BP_VAR_R);
 -              variable_ptr_ptr = _get_zval_ptr_ptr_var((opline+1)->op2.var, execute_data, &free_op_data2 TSRMLS_CC);
 -              if (UNEXPECTED(variable_ptr_ptr == NULL)) {
 -                      if (zend_assign_to_string_offset(&EX_T((opline+1)->op2.var), value, (opline+1)->op1_type TSRMLS_CC)) {
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      zval *retval;
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_OR_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -                                      ALLOC_ZVAL(retval);
 -                                      ZVAL_STRINGL(retval, Z_STRVAL_P(EX_T((opline+1)->op2.var).str_offset.str)+EX_T((opline+1)->op2.var).str_offset.offset, 1, 1);
 -                                      INIT_PZVAL(retval);
 -                                      EX_T(opline->result.var).var.ptr = retval;
 -                              }
 -                      } else if (RETURN_VALUE_USED(opline)) {
 -                              PZVAL_LOCK(&EG(uninitialized_zval));
 -                              EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -                      }
 -              } else if (UNEXPECTED(*variable_ptr_ptr == &EG(error_zval))) {
 -                      if (IS_TMP_FREE(free_op_data1)) {
 -                              zval_dtor(value);
 -                      }
 -                      if (RETURN_VALUE_USED(opline)) {
 -                              PZVAL_LOCK(&EG(uninitialized_zval));
 -                              EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -                      }
 -              } else {
 -                      if ((opline+1)->op1_type == IS_TMP_VAR) {
 -                              value = zend_assign_tmp_to_variable(variable_ptr_ptr, value TSRMLS_CC);
 -                      } else if ((opline+1)->op1_type == IS_CONST) {
 -                              value = zend_assign_const_to_variable(variable_ptr_ptr, value TSRMLS_CC);
 -                      } else {
 -                              value = zend_assign_to_variable(variable_ptr_ptr, value TSRMLS_CC);
 -                      }
 -                      if (RETURN_VALUE_USED(opline)) {
 -                              PZVAL_LOCK(value);
 -                              EX_T(opline->result.var).var.ptr = value;
 -                      }
 -              }
 -              FREE_OP_VAR_PTR(free_op_data2);
 -              FREE_OP_IF_VAR(free_op_data1);
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_CV(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -      /* assign_dim has two opcodes! */
 -      CHECK_EXCEPTION();
 -      ZEND_VM_INC_OPCODE();
 -      ZEND_VM_NEXT_OPCODE();
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_CV(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_SPEC_VAR_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_AND_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || (IS_CV != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op1, free_op2;
 -      zval *value;
 -      zval **variable_ptr_ptr;
  
 -      SAVE_OPLINE();
 -      value = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 -      variable_ptr_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_CV(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_CV(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      if (IS_VAR == IS_VAR && UNEXPECTED(variable_ptr_ptr == NULL)) {
 -              if (zend_assign_to_string_offset(&EX_T(opline->op1.var), value, IS_TMP_VAR TSRMLS_CC)) {
 -                      if (RETURN_VALUE_USED(opline)) {
 -                              zval *retval;
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_XOR_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -                              ALLOC_ZVAL(retval);
 -                              ZVAL_STRINGL(retval, Z_STRVAL_P(EX_T(opline->op1.var).str_offset.str)+EX_T(opline->op1.var).str_offset.offset, 1, 1);
 -                              INIT_PZVAL(retval);
 -                              EX_T(opline->result.var).var.ptr = retval;
 -                      }
 -              } else if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -              }
 -      } else if (IS_VAR == IS_VAR && UNEXPECTED(*variable_ptr_ptr == &EG(error_zval))) {
 -              if (1) {
 -                      zval_dtor(value);
 -              }
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -              }
 -      } else {
 -              if (IS_TMP_VAR == IS_TMP_VAR) {
 -                      value = zend_assign_tmp_to_variable(variable_ptr_ptr, value TSRMLS_CC);
 -              } else if (IS_TMP_VAR == IS_CONST) {
 -                      value = zend_assign_const_to_variable(variable_ptr_ptr, value TSRMLS_CC);
 -              } else {
 -                      value = zend_assign_to_variable(variable_ptr_ptr, value TSRMLS_CC);
 -              }
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(value);
 -                      EX_T(opline->result.var).var.ptr = value;
 -              }
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_CV(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -
 -      if (IS_VAR == IS_VAR && (free_op1.var != NULL)) {
 -              zval_ptr_dtor_nogc(&value);
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_CV(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      /* zend_assign_to_variable() always takes care of op2, never free it! */
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_POW_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_CV(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_CV(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_CV(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_INIT_METHOD_CALL_SPEC_VAR_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_pre_incdec_property_helper_SPEC_VAR_CV(int inc ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zval *function_name;
 -      char *function_name_strval;
 -      int function_name_strlen;
 -      zend_free_op free_op1, free_op2;
 -      call_slot *call = EX(call_slots) + opline->result.num;
 +      zend_free_op free_op1;
 +      zval *object;
 +      zval *property;
 +      zval *zptr;
  
        SAVE_OPLINE();
 +      object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
  
 -      function_name = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 +      if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
  
 -      if (IS_TMP_VAR != IS_CONST &&
 -          UNEXPECTED(Z_TYPE_P(function_name) != IS_STRING)) {
 -              if (UNEXPECTED(EG(exception) != NULL)) {
 -                      HANDLE_EXCEPTION();
 -              }
 -              zend_error_noreturn(E_ERROR, "Method name must be a string");
 +              HANDLE_EXCEPTION();
        }
  
 -      function_name_strval = Z_STRVAL_P(function_name);
 -      function_name_strlen = Z_STRLEN_P(function_name);
 -
 -      call->object = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 +      property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
  
 -      if (EXPECTED(call->object != NULL) &&
 -          EXPECTED(Z_TYPE_P(call->object) == IS_OBJECT)) {
 -              call->called_scope = Z_OBJCE_P(call->object);
 +      if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
  
 -              if (IS_TMP_VAR != IS_CONST ||
 -                  (call->fbc = CACHED_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, call->called_scope)) == NULL) {
 -                  zval *object = call->object;
 -
 -                      if (UNEXPECTED(Z_OBJ_HT_P(call->object)->get_method == NULL)) {
 -                              zend_error_noreturn(E_ERROR, "Object does not support method calls");
 -                      }
 +              HANDLE_EXCEPTION();
 +      }
  
 -                      /* First, locate the function. */
 -                      call->fbc = Z_OBJ_HT_P(call->object)->get_method(&call->object, function_name_strval, function_name_strlen, ((IS_TMP_VAR == IS_CONST) ? (opline->op2.literal + 1) : NULL) TSRMLS_CC);
 -                      if (UNEXPECTED(call->fbc == NULL)) {
 -                              zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", Z_OBJ_CLASS_NAME_P(call->object), function_name_strval);
 -                      }
 -                      if (IS_TMP_VAR == IS_CONST &&
 -                          EXPECTED(call->fbc->type <= ZEND_USER_FUNCTION) &&
 -                          EXPECTED((call->fbc->common.fn_flags & (ZEND_ACC_CALL_VIA_HANDLER|ZEND_ACC_NEVER_CACHE)) == 0) &&
 -                          EXPECTED(call->object == object)) {
 -                              CACHE_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, call->called_scope, call->fbc);
 +      do {
 +              if (IS_VAR != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
 +                              break;
                        }
                }
 -      } else {
 -              if (UNEXPECTED(EG(exception) != NULL)) {
 -                      zval_dtor(free_op2.var);
 -                      HANDLE_EXCEPTION();
 -              }
 -              zend_error_noreturn(E_ERROR, "Call to a member function %s() on %s", function_name_strval, zend_get_type_by_const(Z_TYPE_P(call->object)));
 -      }
  
 -      if ((call->fbc->common.fn_flags & ZEND_ACC_STATIC) != 0) {
 -              call->object = NULL;
 -      } else {
 -              if (!PZVAL_IS_REF(call->object)) {
 -                      Z_ADDREF_P(call->object); /* For $this pointer */
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
 +                      } else {
-                               ZVAL_DEREF(zptr);
-                               SEPARATE_ZVAL_NOREF(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      SEPARATE_ZVAL_NOREF(zptr);
++
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
++                              }
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 +                              }
-                       }
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 +                      }
                } else {
 -                      zval *this_ptr;
 -                      ALLOC_ZVAL(this_ptr);
 -                      INIT_PZVAL_COPY(this_ptr, call->object);
 -                      zval_copy_ctor(this_ptr);
 -                      call->object = this_ptr;
 +                      zend_pre_incdec_overloaded_property(object, property, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
                }
 -      }
 +      } while (0);
  
 -      call->num_additional_args = 0;
 -      call->is_ctor_call = 0;
 -      EX(call) = call;
 +      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
 +}
  
 -      zval_dtor(free_op2.var);
 -      zval_ptr_dtor_nogc(&free_op1.var);
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_INC_OBJ_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_VAR_CV(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +}
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_DEC_OBJ_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_VAR_CV(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_INIT_STATIC_METHOD_CALL_SPEC_VAR_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_post_incdec_property_helper_SPEC_VAR_CV(int inc ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zval *function_name;
 -      zend_class_entry *ce;
 -      call_slot *call = EX(call_slots) + opline->result.num;
 +      zend_free_op free_op1;
 +      zval *object;
 +      zval *property;
 +      zval *zptr;
  
        SAVE_OPLINE();
 +      object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
  
 -      if (IS_VAR == IS_CONST) {
 -              /* no function found. try a static method in class */
 -              if (CACHED_PTR(opline->op1.literal->cache_slot)) {
 -                      ce = CACHED_PTR(opline->op1.literal->cache_slot);
 -              } else {
 -                      ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), opline->op1.literal + 1, opline->extended_value TSRMLS_CC);
 -                      if (UNEXPECTED(EG(exception) != NULL)) {
 -                              HANDLE_EXCEPTION();
 -                      }
 -                      if (UNEXPECTED(ce == NULL)) {
 -                              zend_error_noreturn(E_ERROR, "Class '%s' not found", Z_STRVAL_P(opline->op1.zv));
 -                      }
 -                      CACHE_PTR(opline->op1.literal->cache_slot, ce);
 -              }
 -              call->called_scope = ce;
 -      } else {
 -              ce = EX_T(opline->op1.var).class_entry;
 +      if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
  
 -              if (opline->extended_value == ZEND_FETCH_CLASS_PARENT || opline->extended_value == ZEND_FETCH_CLASS_SELF) {
 -                      call->called_scope = EG(called_scope);
 -              } else {
 -                      call->called_scope = ce;
 -              }
 +              HANDLE_EXCEPTION();
        }
  
 -      if (IS_VAR == IS_CONST &&
 -          IS_TMP_VAR == IS_CONST &&
 -          CACHED_PTR(opline->op2.literal->cache_slot)) {
 -              call->fbc = CACHED_PTR(opline->op2.literal->cache_slot);
 -      } else if (IS_VAR != IS_CONST &&
 -                 IS_TMP_VAR == IS_CONST &&
 -                 (call->fbc = CACHED_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce))) {
 -              /* do nothing */
 -      } else if (IS_TMP_VAR != IS_UNUSED) {
 -              char *function_name_strval = NULL;
 -              int function_name_strlen = 0;
 -              zend_free_op free_op2;
 +      property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
  
 -              if (IS_TMP_VAR == IS_CONST) {
 -                      function_name_strval = Z_STRVAL_P(opline->op2.zv);
 -                      function_name_strlen = Z_STRLEN_P(opline->op2.zv);
 -              } else {
 -                      function_name = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 +      if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
  
 -                      if (UNEXPECTED(Z_TYPE_P(function_name) != IS_STRING)) {
 -                              if (UNEXPECTED(EG(exception) != NULL)) {
 -                                      HANDLE_EXCEPTION();
 -                              }
 -                              zend_error_noreturn(E_ERROR, "Function name must be a string");
 -                      } else {
 -                              function_name_strval = Z_STRVAL_P(function_name);
 -                              function_name_strlen = Z_STRLEN_P(function_name);
 -                      }
 +              HANDLE_EXCEPTION();
 +      }
 +
 +      do {
 +              if (IS_VAR != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                              break;
 +                      }
                }
  
 -              if (function_name_strval) {
 -                      if (ce->get_static_method) {
 -                              call->fbc = ce->get_static_method(ce, function_name_strval, function_name_strlen TSRMLS_CC);
 +              /* here we are sure we are dealing with an object */
 +
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
-                               }
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              ZVAL_NULL(EX_VAR(opline->result.var));
                        } else {
-                               ZVAL_DEREF(zptr);
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               zval_opt_copy_ctor(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
 -                              call->fbc = zend_std_get_static_method(ce, function_name_strval, function_name_strlen, ((IS_TMP_VAR == IS_CONST) ? (opline->op2.literal + 1) : NULL) TSRMLS_CC);
 -                      }
 -                      if (UNEXPECTED(call->fbc == NULL)) {
 -                              zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", ce->name, function_name_strval);
 -                      }
 -                      if (IS_TMP_VAR == IS_CONST &&
 -                          EXPECTED(call->fbc->type <= ZEND_USER_FUNCTION) &&
 -                          EXPECTED((call->fbc->common.fn_flags & (ZEND_ACC_CALL_VIA_HANDLER|ZEND_ACC_NEVER_CACHE)) == 0)) {
 -                              if (IS_VAR == IS_CONST) {
 -                                      CACHE_PTR(opline->op2.literal->cache_slot, call->fbc);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
                                } else {
-                                       decrement_function(zptr);
 -                                      CACHE_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce, call->fbc);
++                                      ZVAL_DEREF(zptr);
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      zval_opt_copy_ctor(zptr);
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
                                }
                        }
 +              } else {
 +                      zend_post_incdec_overloaded_property(object, property, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, EX_VAR(opline->result.var));
                }
 -              if (IS_TMP_VAR != IS_CONST) {
 -                      zval_dtor(free_op2.var);
 -              }
 -      } else {
 -              if (UNEXPECTED(ce->constructor == NULL)) {
 -                      zend_error_noreturn(E_ERROR, "Cannot call constructor");
 -              }
 -              if (EG(This) && Z_OBJCE_P(EG(This)) != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
 -                      zend_error_noreturn(E_ERROR, "Cannot call private %s::__construct()", ce->name);
 -              }
 -              call->fbc = ce->constructor;
 -      }
 +      } while (0);
  
 -      if (call->fbc->common.fn_flags & ZEND_ACC_STATIC) {
 -              call->object = NULL;
 -      } else {
 -              if (EG(This) &&
 -                  Z_OBJ_HT_P(EG(This))->get_class_entry &&
 -                  !instanceof_function(Z_OBJCE_P(EG(This)), ce TSRMLS_CC)) {
 -                  /* We are calling method of the other (incompatible) class,
 -                     but passing $this. This is done for compatibility with php-4. */
 -                      if (call->fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
 -                              zend_error(E_DEPRECATED, "Non-static method %s::%s() should not be called statically, assuming $this from incompatible context", call->fbc->common.scope->name, call->fbc->common.function_name);
 -                      } else {
 -                              /* An internal function assumes $this is present and won't check that. So PHP would crash by allowing the call. */
 -                              zend_error_noreturn(E_ERROR, "Non-static method %s::%s() cannot be called statically, assuming $this from incompatible context", call->fbc->common.scope->name, call->fbc->common.function_name);
 -                      }
 -              }
 -              if ((call->object = EG(This))) {
 -                      Z_ADDREF_P(call->object);
 -                      call->called_scope = Z_OBJCE_P(call->object);
 -              }
 -      }
 +      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
 +}
  
 -      call->num_additional_args = 0;
 -      call->is_ctor_call = 0;
 -      EX(call) = call;
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_INC_OBJ_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_VAR_CV(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +}
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_DEC_OBJ_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_VAR_CV(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_CASE_SPEC_VAR_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_DIM_W_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
 -      zend_free_op free_op1, free_op2;
 +      zend_free_op free_op1;
 +      zval *container;
  
        SAVE_OPLINE();
 -      is_equal_function(&EX_T(opline->result.var).tmp_var,
 -                               _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
 -                               _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
 +      container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an array");
 +              HANDLE_EXCEPTION();
 +      }
 +      zend_fetch_dimension_address_W(EX_VAR(opline->result.var), container, _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var), IS_CV);
 +
 +      if (IS_VAR == IS_VAR && READY_TO_DESTROY(free_op1)) {
 +              EXTRACT_ZVAL_PTR(EX_VAR(opline->result.var), 1);
 +      }
 +      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_ADD_ARRAY_ELEMENT_SPEC_VAR_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_DIM_RW_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
        zend_free_op free_op1;
@@@ -21283,637 -19471,542 +21307,649 @@@ static ZEND_OPCODE_HANDLER_RET ZEND_FAS
                                }
                        }
                }
 +      } else {
 +              /* If no value was specified yield null */
 +              ZVAL_NULL(&generator->value);
        }
  
 -      if (!have_get_ptr) {
 -              if (Z_OBJ_HT_P(object)->read_property && Z_OBJ_HT_P(object)->write_property) {
 -                      zval *z;
 -
 -                      Z_ADDREF_P(object);
 -                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((IS_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 +      /* Set the new yielded key */
 +      if (IS_CV != IS_UNUSED) {
  
 -                      if (UNEXPECTED(Z_TYPE_P(z) == IS_OBJECT) && Z_OBJ_HT_P(z)->get) {
 -                              zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 +              zval *key = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
  
 -                              if (Z_REFCOUNT_P(z) == 0) {
 -                                      GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                      zval_dtor(z);
 -                                      FREE_ZVAL(z);
 -                              }
 -                              z = value;
 +              /* Consts, temporary variables and references need copying */
 +              if (IS_CV == IS_CONST) {
 +                      ZVAL_COPY_VALUE(&generator->key, key);
 +                      if (UNEXPECTED(Z_OPT_COPYABLE(generator->key))) {
 +                              zval_copy_ctor_func(&generator->key);
                        }
 -                      Z_ADDREF_P(z);
 -                      SEPARATE_ZVAL_IF_NOT_REF(&z);
 -                      incdec_op(z);
 -                      *retval = z;
 -                      Z_OBJ_HT_P(object)->write_property(object, property, z, ((IS_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      zval_ptr_dtor(&object);
 -                      SELECTIVE_PZVAL_LOCK(*retval, opline);
 -                      zval_ptr_dtor(&z);
 +              } else if (IS_CV == IS_TMP_VAR) {
 +                      ZVAL_COPY_VALUE(&generator->key, key);
 +              } else if ((IS_CV & (IS_VAR|IS_CV)) && Z_ISREF_P(key)) {
 +                      ZVAL_COPY(&generator->key, Z_REFVAL_P(key));
 +
                } else {
 -                      zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -                      if (RETURN_VALUE_USED(opline)) {
 -                              PZVAL_LOCK(&EG(uninitialized_zval));
 -                              *retval = &EG(uninitialized_zval);
 +                      ZVAL_COPY_VALUE(&generator->key, key);
 +                      if (IS_CV == IS_CV) {
 +                              if (Z_OPT_REFCOUNTED_P(key)) Z_ADDREF_P(key);
                        }
                }
 +
 +              if (Z_TYPE(generator->key) == IS_LONG
 +                  && Z_LVAL(generator->key) > generator->largest_used_integer_key
 +              ) {
 +                      generator->largest_used_integer_key = Z_LVAL(generator->key);
 +              }
 +      } else {
 +              /* If no key was specified we use auto-increment keys */
 +              generator->largest_used_integer_key++;
 +              ZVAL_LONG(&generator->key, generator->largest_used_integer_key);
        }
  
 -      if (0) {
 -              zval_ptr_dtor(&property);
 +      if (RETURN_VALUE_USED(opline)) {
 +              /* If the return value of yield is used set the send
 +               * target and initialize it to NULL */
 +              generator->send_target = EX_VAR(opline->result.var);
 +              ZVAL_NULL(generator->send_target);
        } else {
 -              zval_ptr_dtor_nogc(&free_op2.var);
 +              generator->send_target = NULL;
        }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
  
 -static int ZEND_FASTCALL  ZEND_PRE_INC_OBJ_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_pre_incdec_property_helper_SPEC_VAR_VAR(increment_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +      /* We increment to the next op, so we are at the correct position when the
 +       * generator is resumed. */
 +      ZEND_VM_INC_OPCODE();
  
 -static int ZEND_FASTCALL  ZEND_PRE_DEC_OBJ_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_pre_incdec_property_helper_SPEC_VAR_VAR(decrement_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      /* The GOTO VM uses a local opline variable. We need to set the opline
 +       * variable in execute_data so we don't resume at an old position. */
 +      SAVE_OPLINE();
 +
 +      ZEND_VM_RETURN();
  }
  
 -static int ZEND_FASTCALL zend_post_incdec_property_helper_SPEC_VAR_VAR(incdec_t incdec_op, ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_obj_helper_SPEC_VAR_TMPVAR(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op1, free_op2;
 -      zval **object_ptr;
 +      zend_free_op free_op1, free_op2, free_op_data1;
        zval *object;
        zval *property;
 -      zval *retval;
 -      int have_get_ptr = 0;
 +      zval *value;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      object_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -      property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 -      retval = &EX_T(opline->result.var).tmp_var;
 +      object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
  
 -      if (IS_VAR == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot increment/decrement overloaded objects nor string offsets");
 -      }
 -
 -      make_real_object(object_ptr TSRMLS_CC); /* this should modify object only if it's empty */
 -      object = *object_ptr;
 -
 -      if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 -              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -              zval_ptr_dtor_nogc(&free_op2.var);
 -              ZVAL_NULL(retval);
 -              if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -              CHECK_EXCEPTION();
 -              ZEND_VM_NEXT_OPCODE();
 +      if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
        }
  
 -      /* here we are sure we are dealing with an object */
 +      property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
  
 -      if (0) {
 -              MAKE_REAL_ZVAL_PTR(property);
 +      if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an object");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
        }
  
 -      if (Z_OBJ_HT_P(object)->get_property_ptr_ptr) {
 -              zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -              if (zptr != NULL) {                     /* NULL means no success in getting PTR */
 -                      have_get_ptr = 1;
 -                      if (UNEXPECTED(*zptr == &EG(error_zval))) {
 -                              ZVAL_NULL(retval);
 -                      } else {
 -                              SEPARATE_ZVAL_IF_NOT_REF(zptr);
 -
 -                              ZVAL_COPY_VALUE(retval, *zptr);
 -                              zendi_zval_copy_ctor(*retval);
 +      do {
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
  
 -                              incdec_op(*zptr);
 +              if (IS_VAR != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to assign property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
 +                              break;
                        }
                }
 -      }
 -
 -      if (!have_get_ptr) {
 -              if (Z_OBJ_HT_P(object)->read_property && Z_OBJ_HT_P(object)->write_property) {
 -                      zval *z, *z_copy;
  
 -                      Z_ADDREF_P(object);
 -                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((IS_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      if (UNEXPECTED(Z_TYPE_P(z) == IS_OBJECT) && Z_OBJ_HT_P(z)->get) {
 -                              zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
++                              }
++                      } else {
++                              ZVAL_DEREF(zptr);
++                              SEPARATE_ZVAL_NOREF(zptr);
  
-                       ZVAL_DEREF(zptr);
-                       SEPARATE_ZVAL_NOREF(zptr);
-                       binary_op(zptr, zptr, value);
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 -                              if (Z_REFCOUNT_P(z) == 0) {
 -                                      GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                      zval_dtor(z);
 -                                      FREE_ZVAL(z);
++                              binary_op(zptr, zptr, value);
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
+                               }
 -                              z = value;
                        }
 -                      ZVAL_COPY_VALUE(retval, z);
 -                      zendi_zval_copy_ctor(*retval);
 -                      ALLOC_ZVAL(z_copy);
 -                      INIT_PZVAL_COPY(z_copy, z);
 -                      zendi_zval_copy_ctor(*z_copy);
 -                      incdec_op(z_copy);
 -                      Z_ADDREF_P(z);
 -                      Z_OBJ_HT_P(object)->write_property(object, property, z_copy, ((IS_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      zval_ptr_dtor(&object);
 -                      zval_ptr_dtor(&z_copy);
 -                      zval_ptr_dtor(&z);
                } else {
 -                      zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -                      ZVAL_NULL(retval);
 +                      zend_assign_op_overloaded_property(object, property, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), value, binary_op, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
                }
 -      }
 -
 -      if (0) {
 -              zval_ptr_dtor(&property);
 -      } else {
 -              zval_ptr_dtor_nogc(&free_op2.var);
 -      }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 -
 -static int ZEND_FASTCALL  ZEND_POST_INC_OBJ_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_post_incdec_property_helper_SPEC_VAR_VAR(increment_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +      } while (0);
  
 -static int ZEND_FASTCALL  ZEND_POST_DEC_OBJ_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_post_incdec_property_helper_SPEC_VAR_VAR(decrement_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      FREE_OP(free_op_data1);
 +      zval_ptr_dtor_nogc(free_op2);
 +      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +      /* assign_obj has two opcodes! */
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
  }
  
 -static int ZEND_FASTCALL zend_fetch_var_address_helper_SPEC_VAR_VAR(int type, ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op1;
 -      zval *varname;
 -      zval **retval;
 -      zval tmp_varname;
 -      HashTable *target_symbol_table;
 -      ulong hash_value;
 +      zend_free_op free_op1, free_op2, free_op_data1;
 +      zval *var_ptr, rv;
 +      zval *value, *container, *dim;
  
        SAVE_OPLINE();
 -      varname = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -
 -      if (IS_VAR != IS_CONST && UNEXPECTED(Z_TYPE_P(varname) != IS_STRING)) {
 -              ZVAL_COPY_VALUE(&tmp_varname, varname);
 -              zval_copy_ctor(&tmp_varname);
 -              Z_SET_REFCOUNT(tmp_varname, 1);
 -              Z_UNSET_ISREF(tmp_varname);
 -              convert_to_string(&tmp_varname);
 -              varname = &tmp_varname;
 +      container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
 +      if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
 +      }
 +      if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an array");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
        }
  
 -      if (IS_VAR != IS_UNUSED) {
 -              zend_class_entry *ce;
 -
 -              if (IS_VAR == IS_CONST) {
 -                      if (CACHED_PTR(opline->op2.literal->cache_slot)) {
 -                              ce = CACHED_PTR(opline->op2.literal->cache_slot);
 -                      } else {
 -                              ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, 0 TSRMLS_CC);
 -                              if (UNEXPECTED(ce == NULL)) {
 -                                      if (IS_VAR != IS_CONST && varname == &tmp_varname) {
 -                                              zval_dtor(&tmp_varname);
 -                                      }
 -                                      zval_ptr_dtor_nogc(&free_op1.var);
 -                                      CHECK_EXCEPTION();
 -                                      ZEND_VM_NEXT_OPCODE();
 -                              }
 -                              CACHE_PTR(opline->op2.literal->cache_slot, ce);
 -                      }
 -              } else {
 -                      ce = EX_T(opline->op2.var).class_entry;
 -              }
 -              retval = zend_std_get_static_property(ce, Z_STRVAL_P(varname), Z_STRLEN_P(varname), 0, ((IS_VAR == IS_CONST) ? opline->op1.literal : NULL) TSRMLS_CC);
 -              zval_ptr_dtor_nogc(&free_op1.var);
 -      } else {
 -              target_symbol_table = zend_get_target_symbol_table(opline->extended_value & ZEND_FETCH_TYPE_MASK TSRMLS_CC);
 -/*
 -              if (!target_symbol_table) {
 -                      CHECK_EXCEPTION();
 -                      ZEND_VM_NEXT_OPCODE();
 -              }
 -*/
 -              if (IS_VAR == IS_CONST) {
 -                      hash_value = Z_HASH_P(varname);
 -              } else {
 -                      hash_value = str_hash(Z_STRVAL_P(varname), Z_STRLEN_P(varname));
 -              }
 +      dim = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
  
 -              if (zend_hash_quick_find(target_symbol_table, Z_STRVAL_P(varname), Z_STRLEN_P(varname)+1, hash_value, (void **) &retval) == FAILURE) {
 -                      switch (type) {
 -                              case BP_VAR_R:
 -                              case BP_VAR_UNSET:
 -                                      zend_error(E_NOTICE,"Undefined variable: %s", Z_STRVAL_P(varname));
 -                                      /* break missing intentionally */
 -                              case BP_VAR_IS:
 -                                      retval = &EG(uninitialized_zval_ptr);
 -                                      break;
 -                              case BP_VAR_RW:
 -                                      zend_error(E_NOTICE,"Undefined variable: %s", Z_STRVAL_P(varname));
 -                                      /* break missing intentionally */
 -                              case BP_VAR_W:
 -                                      Z_ADDREF_P(&EG(uninitialized_zval));
 -                                      zend_hash_quick_update(target_symbol_table, Z_STRVAL_P(varname), Z_STRLEN_P(varname)+1, hash_value, &EG(uninitialized_zval_ptr), sizeof(zval *), (void **) &retval);
 -                                      break;
 -                              EMPTY_SWITCH_DEFAULT_CASE()
 +      do {
 +              if (IS_VAR == IS_UNUSED || UNEXPECTED(Z_TYPE_P(container) != IS_ARRAY)) {
 +                      if (IS_VAR != IS_UNUSED) {
 +                              ZVAL_DEREF(container);
                        }
 -              }
 -              switch (opline->extended_value & ZEND_FETCH_TYPE_MASK) {
 -                      case ZEND_FETCH_GLOBAL:
 -                              if (IS_VAR != IS_TMP_VAR) {
 -                                      zval_ptr_dtor_nogc(&free_op1.var);
 -                              }
 -                              break;
 -                      case ZEND_FETCH_LOCAL:
 -                              zval_ptr_dtor_nogc(&free_op1.var);
 -                              break;
 -                      case ZEND_FETCH_STATIC:
 -                              zval_update_constant(retval, 1 TSRMLS_CC);
 -                              break;
 -                      case ZEND_FETCH_GLOBAL_LOCK:
 -                              if (IS_VAR == IS_VAR && !free_op1.var) {
 -                                      PZVAL_LOCK(*EX_T(opline->op1.var).var.ptr_ptr);
 -                              }
 +                      if (IS_VAR == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
 +                              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +                              zend_binary_assign_op_obj_dim(container, dim, value, UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL, binary_op);
                                break;
 +                      }
                }
 -      }
  
 +              zend_fetch_dimension_address_RW(&rv, container, dim, (IS_TMP_VAR|IS_VAR));
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +              ZEND_ASSERT(Z_TYPE(rv) == IS_INDIRECT);
 +              var_ptr = Z_INDIRECT(rv);
  
 -      if (IS_VAR != IS_CONST && varname == &tmp_varname) {
 -              zval_dtor(&tmp_varname);
 -      }
 -      if (opline->extended_value & ZEND_FETCH_MAKE_REF) {
 -              SEPARATE_ZVAL_TO_MAKE_IS_REF(retval);
 -      }
 -      PZVAL_LOCK(*retval);
 -      switch (type) {
 -              case BP_VAR_R:
 -              case BP_VAR_IS:
 -                      EX_T(opline->result.var).var.ptr = *retval;
 -                      break;
 -              case BP_VAR_UNSET: {
 -                      zend_free_op free_res;
 +              if (UNEXPECTED(var_ptr == NULL)) {
 +                      zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
 +                      zval_ptr_dtor_nogc(free_op2);
 +                      FREE_OP(free_op_data1);
 +                      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +                      HANDLE_EXCEPTION();
 +              }
  
 -                      PZVAL_UNLOCK(*retval, &free_res);
 -                      if (retval != &EG(uninitialized_zval_ptr)) {
 -                              SEPARATE_ZVAL_IF_NOT_REF(retval);
 +              if (UNEXPECTED(var_ptr == &EG(error_zval))) {
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
                        }
 -                      PZVAL_LOCK(*retval);
 -                      FREE_OP_VAR_PTR(free_res);
 -              }
 -              /* break missing intentionally */
 -              default:
 -                      EX_T(opline->result.var).var.ptr_ptr = retval;
 -                      break;
 -      }
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +              } else {
 +                      ZVAL_DEREF(var_ptr);
 +                      SEPARATE_ZVAL_NOREF(var_ptr);
  
 -static int ZEND_FASTCALL  ZEND_FETCH_R_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_fetch_var_address_helper_SPEC_VAR_VAR(BP_VAR_R, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +                      binary_op(var_ptr, var_ptr, value);
  
 -static int ZEND_FASTCALL  ZEND_FETCH_W_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_fetch_var_address_helper_SPEC_VAR_VAR(BP_VAR_W, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_COPY(EX_VAR(opline->result.var), var_ptr);
 +                      }
 +              }
 +      } while (0);
  
 -static int ZEND_FASTCALL  ZEND_FETCH_RW_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_fetch_var_address_helper_SPEC_VAR_VAR(BP_VAR_RW, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      zval_ptr_dtor_nogc(free_op2);
 +      FREE_OP(free_op_data1);
 +      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_FUNC_ARG_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_helper_SPEC_VAR_TMPVAR(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 +      zend_free_op free_op1, free_op2;
 +      zval *var_ptr;
 +      zval *value;
  
 -      return zend_fetch_var_address_helper_SPEC_VAR_VAR(zend_is_by_ref_func_arg_fetch(opline, EX(call) TSRMLS_CC) ? BP_VAR_W : BP_VAR_R, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +      SAVE_OPLINE();
 +      value = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
 +      var_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
  
 -static int ZEND_FASTCALL  ZEND_FETCH_UNSET_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +      if (IS_VAR == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
 +              zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
 +      }
 +
 +      if (IS_VAR == IS_VAR && UNEXPECTED(var_ptr == &EG(error_zval))) {
 +              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                      ZVAL_NULL(EX_VAR(opline->result.var));
 +              }
 +      } else {
 +              ZVAL_DEREF(var_ptr);
 +              SEPARATE_ZVAL_NOREF(var_ptr);
 +
 +              binary_op(var_ptr, var_ptr, value);
 +
 +              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                      ZVAL_COPY(EX_VAR(opline->result.var), var_ptr);
 +              }
 +      }
 +
 +      zval_ptr_dtor_nogc(free_op2);
 +      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
 +}
 +
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_ADD_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_fetch_var_address_helper_SPEC_VAR_VAR(BP_VAR_UNSET, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_TMPVAR(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_TMPVAR(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_IS_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SUB_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_fetch_var_address_helper_SPEC_VAR_VAR(BP_VAR_IS, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_TMPVAR(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_TMPVAR(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_DIM_R_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_MUL_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op1, free_op2;
 -      zval *container;
  
 -      SAVE_OPLINE();
 -      container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -      zend_fetch_dimension_address_read(&EX_T(opline->result.var), container, _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC), IS_VAR, BP_VAR_R TSRMLS_CC);
 -      zval_ptr_dtor_nogc(&free_op2.var);
 -      if (IS_VAR != IS_VAR || !(opline->extended_value & ZEND_FETCH_ADD_LOCK)) {
 -              zval_ptr_dtor_nogc(&free_op1.var);
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_TMPVAR(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_TMPVAR(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_DIM_W_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_DIV_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op1, free_op2;
 -      zval **container;
  
 -      SAVE_OPLINE();
 -      container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_TMPVAR(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_TMPVAR(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_MOD_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_TMPVAR(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      zend_fetch_dimension_address(&EX_T(opline->result.var), container, _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC), IS_VAR, BP_VAR_W TSRMLS_CC);
 -      zval_ptr_dtor_nogc(&free_op2.var);
 -      if (IS_VAR == IS_VAR && (free_op1.var != NULL) && READY_TO_DESTROY(free_op1.var)) {
 -              EXTRACT_ZVAL_PTR(&EX_T(opline->result.var));
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_TMPVAR(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      /* We are going to assign the result by reference */
 -      if (UNEXPECTED(opline->extended_value != 0)) {
 -              zval **retval_ptr = EX_T(opline->result.var).var.ptr_ptr;
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SL_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
  
 -              if (retval_ptr) {
 -                      Z_DELREF_PP(retval_ptr);
 -                      SEPARATE_ZVAL_TO_MAKE_IS_REF(retval_ptr);
 -                      Z_ADDREF_PP(retval_ptr);
 -              }
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_TMPVAR(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_TMPVAR(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SR_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_TMPVAR(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_TMPVAR(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_DIM_RW_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_CONCAT_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op1, free_op2;
 -      zval **container;
  
 -      SAVE_OPLINE();
 -      container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_TMPVAR(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_TMPVAR(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_OR_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_TMPVAR(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      zend_fetch_dimension_address(&EX_T(opline->result.var), container, _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC), IS_VAR, BP_VAR_RW TSRMLS_CC);
 -      zval_ptr_dtor_nogc(&free_op2.var);
 -      if (IS_VAR == IS_VAR && (free_op1.var != NULL) && READY_TO_DESTROY(free_op1.var)) {
 -              EXTRACT_ZVAL_PTR(&EX_T(opline->result.var));
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_TMPVAR(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_DIM_IS_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_AND_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op1, free_op2;
 -      zval *container;
  
 -      SAVE_OPLINE();
 -      container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -      zend_fetch_dimension_address_read(&EX_T(opline->result.var), container, _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC), IS_VAR, BP_VAR_IS TSRMLS_CC);
 -      zval_ptr_dtor_nogc(&free_op2.var);
 -      zval_ptr_dtor_nogc(&free_op1.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_TMPVAR(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_TMPVAR(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_DIM_FUNC_ARG_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_XOR_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op1, free_op2;
  
 -      SAVE_OPLINE();
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_TMPVAR(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_TMPVAR(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      if (zend_is_by_ref_func_arg_fetch(opline, EX(call) TSRMLS_CC)) {
 -              zval **container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -              if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
 -                      zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
 -              }
 -              zend_fetch_dimension_address(&EX_T(opline->result.var), container, _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC), IS_VAR, BP_VAR_W TSRMLS_CC);
 -              if (IS_VAR == IS_VAR && (free_op1.var != NULL) && READY_TO_DESTROY(free_op1.var)) {
 -                      EXTRACT_ZVAL_PTR(&EX_T(opline->result.var));
 -              }
 -              zval_ptr_dtor_nogc(&free_op2.var);
 -              if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -      } else {
 -              zval *container;
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_POW_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
  
 -              if (IS_VAR == IS_UNUSED) {
 -                      zend_error_noreturn(E_ERROR, "Cannot use [] for reading");
 -              }
 -              container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -              zend_fetch_dimension_address_read(&EX_T(opline->result.var), container, _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC), IS_VAR, BP_VAR_R TSRMLS_CC);
 -              zval_ptr_dtor_nogc(&free_op2.var);
 -              zval_ptr_dtor_nogc(&free_op1.var);
 +# if 0 || (IS_VAR != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_VAR_TMPVAR(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_VAR_TMPVAR(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_DIM_UNSET_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_pre_incdec_property_helper_SPEC_VAR_TMPVAR(int inc ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
        zend_free_op free_op1, free_op2;
 -      zval **container;
 +      zval *object;
 +      zval *property;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 +      object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
  
 -      if (IS_VAR == IS_CV) {
 -              if (container != &EG(uninitialized_zval_ptr)) {
 -                      SEPARATE_ZVAL_IF_NOT_REF(container);
 -              }
 -      }
 -      if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
 +      if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
        }
 -      zend_fetch_dimension_address(&EX_T(opline->result.var), container, _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC), IS_VAR, BP_VAR_UNSET TSRMLS_CC);
 -      zval_ptr_dtor_nogc(&free_op2.var);
 -      if (IS_VAR == IS_VAR && (free_op1.var != NULL) && READY_TO_DESTROY(free_op1.var)) {
 -              EXTRACT_ZVAL_PTR(&EX_T(opline->result.var));
 +
 +      property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
 +
 +      if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
        }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -      if (UNEXPECTED(EX_T(opline->result.var).var.ptr_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot unset string offsets");
 -              ZEND_VM_NEXT_OPCODE();
 -      } else {
 -              zend_free_op free_res;
 -              zval **retval_ptr = EX_T(opline->result.var).var.ptr_ptr;
  
 -              PZVAL_UNLOCK(*retval_ptr, &free_res);
 -              if (retval_ptr != &EG(uninitialized_zval_ptr)) {
 -                      SEPARATE_ZVAL_IF_NOT_REF(retval_ptr);
 +      do {
 +              if (IS_VAR != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
 +                              break;
 +                      }
                }
 -              PZVAL_LOCK(*retval_ptr);
 -              FREE_OP_VAR_PTR(free_res);
 -              CHECK_EXCEPTION();
 -              ZEND_VM_NEXT_OPCODE();
 -      }
 +
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
 +                      } else {
-                               ZVAL_DEREF(zptr);
-                               SEPARATE_ZVAL_NOREF(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      SEPARATE_ZVAL_NOREF(zptr);
++
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
++                              }
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 +                              }
-                       }
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 +                      }
 +              } else {
 +                      zend_pre_incdec_overloaded_property(object, property, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
 +              }
 +      } while (0);
 +
 +      zval_ptr_dtor_nogc(free_op2);
 +      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
 +}
 +
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_INC_OBJ_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_VAR_TMPVAR(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +}
 +
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_DEC_OBJ_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_VAR_TMPVAR(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL zend_fetch_property_address_read_helper_SPEC_VAR_VAR(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_post_incdec_property_helper_SPEC_VAR_TMPVAR(int inc ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op1;
 -      zval *container;
 -      zend_free_op free_op2;
 -      zval *offset;
 +      zend_free_op free_op1, free_op2;
 +      zval *object;
 +      zval *property;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -      offset  = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 +      object = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1);
  
 -      if (UNEXPECTED(Z_TYPE_P(container) != IS_OBJECT) ||
 -          UNEXPECTED(Z_OBJ_HT_P(container)->read_property == NULL)) {
 -              zend_error(E_NOTICE, "Trying to get property of non-object");
 -              PZVAL_LOCK(&EG(uninitialized_zval));
 -              EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -              zval_ptr_dtor_nogc(&free_op2.var);
 -      } else {
 -              zval *retval;
 +      if (IS_VAR == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
 +      }
 +
 +      property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
 +
 +      if (IS_VAR == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
 +      }
  
 -              if (0) {
 -                      MAKE_REAL_ZVAL_PTR(offset);
 +      do {
 +              if (IS_VAR != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                              break;
 +                      }
                }
  
                /* here we are sure we are dealing with an object */
 -              retval = Z_OBJ_HT_P(container)->read_property(container, offset, BP_VAR_R, ((IS_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
  
 -              PZVAL_LOCK(retval);
 -              EX_T(opline->result.var).var.ptr = retval;
 -
 -              if (0) {
 -                      zval_ptr_dtor(&offset);
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
-                               }
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                      } else {
-                               ZVAL_DEREF(zptr);
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               zval_opt_copy_ctor(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      zval_opt_copy_ctor(zptr);
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
 +                              }
 +                      }
                } else {
 -                      zval_ptr_dtor_nogc(&free_op2.var);
 +                      zend_post_incdec_overloaded_property(object, property, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, EX_VAR(opline->result.var));
                }
 -      }
 +      } while (0);
  
 -      zval_ptr_dtor_nogc(&free_op1.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      zval_ptr_dtor_nogc(free_op2);
 +      if (UNEXPECTED(free_op1)) {zval_ptr_dtor_nogc(free_op1);};
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_OBJ_R_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_INC_OBJ_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_fetch_property_address_read_helper_SPEC_VAR_VAR(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_VAR_TMPVAR(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_OBJ_W_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_DEC_OBJ_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_VAR_TMPVAR(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +}
 +
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_DIM_W_SPEC_VAR_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
        zend_free_op free_op1, free_op2;
@@@ -22857,642 -21041,851 +22893,654 @@@ static ZEND_OPCODE_HANDLER_RET ZEND_FAS
                }
        }
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL zend_isset_isempty_dim_prop_obj_handler_SPEC_VAR_VAR(int prop_dim, ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_EXIT_SPEC_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
 -      zend_free_op free_op1, free_op2;
 -      zval *container;
 -      zval **value = NULL;
 -      int result = 0;
 -      ulong hval;
 -      zval *offset;
  
        SAVE_OPLINE();
 -      container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -      offset = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 -
 -      if (Z_TYPE_P(container) == IS_ARRAY && !prop_dim) {
 -              HashTable *ht;
 -              int isset = 0;
 -
 -              ht = Z_ARRVAL_P(container);
 -
 -              switch (Z_TYPE_P(offset)) {
 -                      case IS_DOUBLE:
 -                              hval = zend_dval_to_lval(Z_DVAL_P(offset));
 -                              goto num_index_prop;
 -                      case IS_RESOURCE:
 -                      case IS_BOOL:
 -                      case IS_LONG:
 -                              hval = Z_LVAL_P(offset);
 -num_index_prop:
 -                              if (zend_hash_index_find(ht, hval, (void **) &value) == SUCCESS) {
 -                                      isset = 1;
 -                              }
 -                              break;
 -                      case IS_STRING:
 -                              if (IS_VAR == IS_CONST) {
 -                                      hval = Z_HASH_P(offset);
 -                              } else {
 -                                      ZEND_HANDLE_NUMERIC_EX(Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, goto num_index_prop);
 -                                      hval = str_hash(Z_STRVAL_P(offset), Z_STRLEN_P(offset));
 -                              }
 -                              if (zend_hash_quick_find(ht, Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, (void **) &value) == SUCCESS) {
 -                                      isset = 1;
 -                              }
 -                              break;
 -                      case IS_NULL:
 -                              if (zend_hash_find(ht, "", sizeof(""), (void **) &value) == SUCCESS) {
 -                                      isset = 1;
 -                              }
 -                              break;
 -                      default:
 -                              zend_error(E_WARNING, "Illegal offset type in isset or empty");
 -                              break;
 -              }
 +      if (IS_UNUSED != IS_UNUSED) {
  
 -              if (opline->extended_value & ZEND_ISSET) {
 -                      if (isset && Z_TYPE_PP(value) == IS_NULL) {
 -                              result = 0;
 -                      } else {
 -                              result = isset;
 -                      }
 -              } else /* if (opline->extended_value & ZEND_ISEMPTY) */ {
 -                      if (!isset || !i_zend_is_true(*value)) {
 -                              result = 0;
 -                      } else {
 -                              result = 1;
 -                      }
 -              }
 -              zval_ptr_dtor_nogc(&free_op2.var);
 -      } else if (Z_TYPE_P(container) == IS_OBJECT) {
 -              if (0) {
 -                      MAKE_REAL_ZVAL_PTR(offset);
 -              }
 -              if (prop_dim) {
 -                      if (Z_OBJ_HT_P(container)->has_property) {
 -                              result = Z_OBJ_HT_P(container)->has_property(container, offset, (opline->extended_value & ZEND_ISEMPTY) != 0, ((IS_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      } else {
 -                              zend_error(E_NOTICE, "Trying to check property of non-object");
 -                              result = 0;
 -                      }
 -              } else {
 -                      if (Z_OBJ_HT_P(container)->has_dimension) {
 -                              result = Z_OBJ_HT_P(container)->has_dimension(container, offset, (opline->extended_value & ZEND_ISEMPTY) != 0 TSRMLS_CC);
 -                      } else {
 -                              zend_error(E_NOTICE, "Trying to check element of non-array");
 -                              result = 0;
 -                      }
 -              }
 -              if (0) {
 -                      zval_ptr_dtor(&offset);
 -              } else {
 -                      zval_ptr_dtor_nogc(&free_op2.var);
 -              }
 -      } else if (Z_TYPE_P(container) == IS_STRING && !prop_dim) { /* string offsets */
 -              zval tmp;
 +              zval *ptr = NULL;
  
 -              if (Z_TYPE_P(offset) != IS_LONG) {
 -                      if (Z_TYPE_P(offset) <= IS_BOOL /* simple scalar types */
 -                                      || (Z_TYPE_P(offset) == IS_STRING /* or numeric string */
 -                                              && IS_LONG == is_numeric_string(Z_STRVAL_P(offset), Z_STRLEN_P(offset), NULL, NULL, 0))) {
 -                              ZVAL_COPY_VALUE(&tmp, offset);
 -                              zval_copy_ctor(&tmp);
 -                              convert_to_long(&tmp);
 -                              offset = &tmp;
 +              do {
 +                      if (Z_TYPE_P(ptr) == IS_LONG) {
 +                              EG(exit_status) = Z_LVAL_P(ptr);
                        } else {
 -                              /* can not be converted to proper offset, return "not set" */
 -                              result = 0;
 -                      }
 -              }
 -              if (Z_TYPE_P(offset) == IS_LONG) {
 -                      if (opline->extended_value & ZEND_ISSET) {
 -                              if (offset->value.lval >= 0 && offset->value.lval < Z_STRLEN_P(container)) {
 -                                      result = 1;
 -                              }
 -                      } else /* if (opline->extended_value & ZEND_ISEMPTY) */ {
 -                              if (offset->value.lval >= 0 && offset->value.lval < Z_STRLEN_P(container) && Z_STRVAL_P(container)[offset->value.lval] != '0') {
 -                                      result = 1;
 +                              if ((IS_UNUSED & (IS_VAR|IS_CV)) && Z_ISREF_P(ptr)) {
 +                                      ptr = Z_REFVAL_P(ptr);
 +                                      if (Z_TYPE_P(ptr) == IS_LONG) {
 +                                              EG(exit_status) = Z_LVAL_P(ptr);
 +                                              break;
 +                                      }
                                }
 +                              zend_print_variable(ptr);
                        }
 -              }
 -              zval_ptr_dtor_nogc(&free_op2.var);
 -      } else {
 -              zval_ptr_dtor_nogc(&free_op2.var);
 -      }
 +              } while (0);
  
 -      Z_TYPE(EX_T(opline->result.var).tmp_var) = IS_BOOL;
 -      if (opline->extended_value & ZEND_ISSET) {
 -              Z_LVAL(EX_T(opline->result.var).tmp_var) = result;
 -      } else {
 -              Z_LVAL(EX_T(opline->result.var).tmp_var) = !result;
        }
 -
 -      zval_ptr_dtor_nogc(&free_op1.var);
 -
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 -
 -static int ZEND_FASTCALL  ZEND_ISSET_ISEMPTY_DIM_OBJ_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_isset_isempty_dim_prop_obj_handler_SPEC_VAR_VAR(0, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 -
 -static int ZEND_FASTCALL  ZEND_ISSET_ISEMPTY_PROP_OBJ_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_isset_isempty_dim_prop_obj_handler_SPEC_VAR_VAR(1, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      zend_bailout();
 +      ZEND_VM_NEXT_OPCODE(); /* Never reached */
  }
  
 -static int ZEND_FASTCALL  ZEND_YIELD_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_obj_helper_SPEC_UNUSED_CONST(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 +      zend_free_op free_op_data1;
 +      zval *object;
 +      zval *property;
 +      zval *value;
 +      zval *zptr;
  
 -      /* The generator object is stored in return_value_ptr_ptr */
 -      zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr);
 -
 -      if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
 -              zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
 -      }
 +      SAVE_OPLINE();
 +      object = _get_obj_zval_ptr_unused(execute_data);
  
 -      /* Destroy the previously yielded value */
 -      if (generator->value) {
 -              zval_ptr_dtor(&generator->value);
 -      }
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -      /* Destroy the previously yielded key */
 -      if (generator->key) {
 -              zval_ptr_dtor(&generator->key);
 +              HANDLE_EXCEPTION();
        }
  
 -      /* Set the new yielded value */
 -      if (IS_VAR != IS_UNUSED) {
 -              zend_free_op free_op1;
 +      property = EX_CONSTANT(opline->op2);
  
 -              if (EX(op_array)->fn_flags & ZEND_ACC_RETURN_REFERENCE) {
 -                      /* Constants and temporary variables aren't yieldable by reference,
 -                       * but we still allow them with a notice. */
 -                      if (IS_VAR == IS_CONST || IS_VAR == IS_TMP_VAR) {
 -                              zval *value, *copy;
 +      if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an object");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -                              zend_error(E_NOTICE, "Only variable references should be yielded by reference");
 +              HANDLE_EXCEPTION();
 +      }
  
 -                              value = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -                              ALLOC_ZVAL(copy);
 -                              INIT_PZVAL_COPY(copy, value);
 +      do {
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
  
 -                              /* Temporary variables don't need ctor copying */
 -                              if (!0) {
 -                                      zval_copy_ctor(copy);
 +              if (IS_UNUSED != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to assign property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
                                }
 +                              break;
 +                      }
 +              }
  
 -                              generator->value = copy;
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
++                              }
+                       } else {
 -                              zval **value_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
++                              ZVAL_DEREF(zptr);
++                              SEPARATE_ZVAL_NOREF(zptr);
  
-                       ZVAL_DEREF(zptr);
-                       SEPARATE_ZVAL_NOREF(zptr);
-                       binary_op(zptr, zptr, value);
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 -                              if (IS_VAR == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
 -                                      zend_error_noreturn(E_ERROR, "Cannot yield string offsets by reference");
++                              binary_op(zptr, zptr, value);
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
+                               }
 +                      }
 +              } else {
 +                      zend_assign_op_overloaded_property(object, property, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), value, binary_op, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
 +              }
 +      } while (0);
  
 -                              /* If a function call result is yielded and the function did
 -                               * not return by reference we throw a notice. */
 -                              if (IS_VAR == IS_VAR && !Z_ISREF_PP(value_ptr)
 -                                  && !(opline->extended_value == ZEND_RETURNS_FUNCTION
 -                                       && EX_T(opline->op1.var).var.fcall_returned_reference)
 -                                  && EX_T(opline->op1.var).var.ptr_ptr == &EX_T(opline->op1.var).var.ptr) {
 -                                      zend_error(E_NOTICE, "Only variable references should be yielded by reference");
 +      FREE_OP(free_op_data1);
  
 -                                      Z_ADDREF_PP(value_ptr);
 -                                      generator->value = *value_ptr;
 -                              } else {
 -                                      SEPARATE_ZVAL_TO_MAKE_IS_REF(value_ptr);
 -                                      Z_ADDREF_PP(value_ptr);
 -                                      generator->value = *value_ptr;
 -                              }
  
 -                              if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -                      }
 -              } else {
 -                      zval *value = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 +      /* assign_obj has two opcodes! */
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
 +}
  
 -                      /* Consts, temporary variables and references need copying */
 -                      if (IS_VAR == IS_CONST || IS_VAR == IS_TMP_VAR
 -                              || PZVAL_IS_REF(value)
 -                      ) {
 -                              zval *copy;
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
 +{
 +      USE_OPLINE
 +      zend_free_op free_op_data1;
 +      zval *var_ptr, rv;
 +      zval *value, *container, *dim;
  
 -                              ALLOC_ZVAL(copy);
 -                              INIT_PZVAL_COPY(copy, value);
 +      SAVE_OPLINE();
 +      container = _get_obj_zval_ptr_unused(execute_data);
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -                              /* Temporary variables don't need ctor copying */
 -                              if (!0) {
 -                                      zval_copy_ctor(copy);
 -                              }
 +              HANDLE_EXCEPTION();
 +      }
 +      if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an array");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -                              generator->value = copy;
 -                              zval_ptr_dtor_nogc(&free_op1.var);
 -                      } else {
 -                              if (IS_VAR == IS_CV) {
 -                                      Z_ADDREF_P(value);
 -                              }
 -                              generator->value = value;
 +              HANDLE_EXCEPTION();
 +      }
 +
 +      dim = EX_CONSTANT(opline->op2);
 +
 +      do {
 +              if (IS_UNUSED == IS_UNUSED || UNEXPECTED(Z_TYPE_P(container) != IS_ARRAY)) {
 +                      if (IS_UNUSED != IS_UNUSED) {
 +                              ZVAL_DEREF(container);
 +                      }
 +                      if (IS_UNUSED == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
 +                              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +                              zend_binary_assign_op_obj_dim(container, dim, value, UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL, binary_op);
 +                              break;
                        }
                }
 -      } else {
 -              /* If no value was specified yield null */
 -              Z_ADDREF(EG(uninitialized_zval));
 -              generator->value = &EG(uninitialized_zval);
 -      }
  
 -      /* Set the new yielded key */
 -      if (IS_VAR != IS_UNUSED) {
 -              zend_free_op free_op2;
 -              zval *key = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 +              zend_fetch_dimension_address_RW(&rv, container, dim, IS_CONST);
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +              ZEND_ASSERT(Z_TYPE(rv) == IS_INDIRECT);
 +              var_ptr = Z_INDIRECT(rv);
  
 -              /* Consts, temporary variables and references need copying */
 -              if (IS_VAR == IS_CONST || IS_VAR == IS_TMP_VAR
 -                      || (PZVAL_IS_REF(key) && Z_REFCOUNT_P(key) > 0)
 -              ) {
 -                      zval *copy;
 +              if (UNEXPECTED(var_ptr == NULL)) {
 +                      zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
  
 -                      ALLOC_ZVAL(copy);
 -                      INIT_PZVAL_COPY(copy, key);
 +                      FREE_OP(free_op_data1);
  
 -                      /* Temporary variables don't need ctor copying */
 -                      if (!0) {
 -                              zval_copy_ctor(copy);
 -                      }
 +                      HANDLE_EXCEPTION();
 +              }
  
 -                      generator->key = copy;
 +              if (UNEXPECTED(var_ptr == &EG(error_zval))) {
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                      }
                } else {
 -                      Z_ADDREF_P(key);
 -                      generator->key = key;
 -              }
 +                      ZVAL_DEREF(var_ptr);
 +                      SEPARATE_ZVAL_NOREF(var_ptr);
  
 -              if (Z_TYPE_P(generator->key) == IS_LONG
 -                  && Z_LVAL_P(generator->key) > generator->largest_used_integer_key
 -              ) {
 -                      generator->largest_used_integer_key = Z_LVAL_P(generator->key);
 +                      binary_op(var_ptr, var_ptr, value);
 +
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_COPY(EX_VAR(opline->result.var), var_ptr);
 +                      }
                }
 +      } while (0);
  
 -              zval_ptr_dtor_nogc(&free_op2.var);
 -      } else {
 -              /* If no key was specified we use auto-increment keys */
 -              generator->largest_used_integer_key++;
 +      FREE_OP(free_op_data1);
  
 -              ALLOC_INIT_ZVAL(generator->key);
 -              ZVAL_LONG(generator->key, generator->largest_used_integer_key);
 -      }
 -
 -      if (RETURN_VALUE_USED(opline)) {
 -              /* If the return value of yield is used set the send
 -               * target and initialize it to NULL */
 -              generator->send_target = &EX_T(opline->result.var).var.ptr;
 -              Z_ADDREF(EG(uninitialized_zval));
 -              EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -      } else {
 -              generator->send_target = NULL;
 -      }
 -
 -      /* We increment to the next op, so we are at the correct position when the
 -       * generator is resumed. */
 -      ZEND_VM_INC_OPCODE();
 -
 -      /* The GOTO VM uses a local opline variable. We need to set the opline
 -       * variable in execute_data so we don't resume at an old position. */
 -      SAVE_OPLINE();
 -
 -      ZEND_VM_RETURN();
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
  }
  
 -static int ZEND_FASTCALL  ZEND_POW_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_ADD_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || (IS_CONST != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op1, free_op2;
  
 -      SAVE_OPLINE();
 -      pow_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
 -              _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
 -      zval_ptr_dtor_nogc(&free_op1.var);
 -      zval_ptr_dtor_nogc(&free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CONST(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CONST(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_POW_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SUB_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_binary_assign_op_helper_SPEC_VAR_VAR(pow_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +#if 0 || (IS_CONST != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CONST(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CONST(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL zend_binary_assign_op_obj_helper_SPEC_VAR_UNUSED(int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC), ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_MUL_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || (IS_CONST != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op1, free_op_data1;
 -      zval **object_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -      zval *object;
 -      zval *property = NULL;
 -      zval *value = get_zval_ptr((opline+1)->op1_type, &(opline+1)->op1, execute_data, &free_op_data1, BP_VAR_R);
 -      int have_get_ptr = 0;
  
 -      if (IS_VAR == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an object");
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CONST(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -
 -      make_real_object(object_ptr TSRMLS_CC);
 -      object = *object_ptr;
 -
 -      if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 -              zend_error(E_WARNING, "Attempt to assign property of non-object");
 -
 -              FREE_OP(free_op_data1);
 -
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -              }
 -      } else {
 -              /* here we are sure we are dealing with an object */
 -              if (0) {
 -                      MAKE_REAL_ZVAL_PTR(property);
 -              }
 -
 -              /* here property is a string */
 -              if (opline->extended_value == ZEND_ASSIGN_OBJ
 -                      && Z_OBJ_HT_P(object)->get_property_ptr_ptr) {
 -                      zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_UNUSED == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      if (zptr != NULL) {                     /* NULL means no success in getting PTR */
 -                              have_get_ptr = 1;
 -                              if (UNEXPECTED(*zptr == &EG(error_zval))) {
 -                                      if (RETURN_VALUE_USED(opline)) {
 -                                              PZVAL_LOCK(&EG(uninitialized_zval));
 -                                              EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -                                      }
 -                              } else {
 -                                      SEPARATE_ZVAL_IF_NOT_REF(zptr);
 -
 -                                      binary_op(*zptr, *zptr, value TSRMLS_CC);
 -                                      if (RETURN_VALUE_USED(opline)) {
 -                                              PZVAL_LOCK(*zptr);
 -                                              EX_T(opline->result.var).var.ptr = *zptr;
 -                                      }
 -                              }
 -                      }
 -              }
 -
 -              if (!have_get_ptr) {
 -                      zval *z = NULL;
 -
 -                      Z_ADDREF_P(object);
 -                      if (opline->extended_value == ZEND_ASSIGN_OBJ) {
 -                              if (Z_OBJ_HT_P(object)->read_property) {
 -                                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((IS_UNUSED == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                              }
 -                      } else /* if (opline->extended_value == ZEND_ASSIGN_DIM) */ {
 -                              if (Z_OBJ_HT_P(object)->read_dimension) {
 -                                      z = Z_OBJ_HT_P(object)->read_dimension(object, property, BP_VAR_R TSRMLS_CC);
 -                              }
 -                      }
 -                      if (z) {
 -                              if (Z_TYPE_P(z) == IS_OBJECT && Z_OBJ_HT_P(z)->get) {
 -                                      zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 -
 -                                      if (Z_REFCOUNT_P(z) == 0) {
 -                                              GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                              zval_dtor(z);
 -                                              FREE_ZVAL(z);
 -                                      }
 -                                      z = value;
 -                              }
 -                              Z_ADDREF_P(z);
 -                              SEPARATE_ZVAL_IF_NOT_REF(&z);
 -                              binary_op(z, z, value TSRMLS_CC);
 -                              if (opline->extended_value == ZEND_ASSIGN_OBJ) {
 -                                      Z_OBJ_HT_P(object)->write_property(object, property, z, ((IS_UNUSED == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                              } else /* if (opline->extended_value == ZEND_ASSIGN_DIM) */ {
 -                                      Z_OBJ_HT_P(object)->write_dimension(object, property, z TSRMLS_CC);
 -                              }
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      PZVAL_LOCK(z);
 -                                      EX_T(opline->result.var).var.ptr = z;
 -                              }
 -                              zval_ptr_dtor(&z);
 -                      } else {
 -                              zend_error(E_WARNING, "Attempt to assign property of non-object");
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                                      EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -                              }
 -                      }
 -                      zval_ptr_dtor(&object);
 -              }
 -
 -              if (0) {
 -                      zval_ptr_dtor(&property);
 -              } else {
 -
 -              }
 -              FREE_OP(free_op_data1);
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CONST(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -      /* assign_obj has two opcodes! */
 -      CHECK_EXCEPTION();
 -      ZEND_VM_INC_OPCODE();
 -      ZEND_VM_NEXT_OPCODE();
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL zend_binary_assign_op_helper_SPEC_VAR_UNUSED(int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC), ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_DIV_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || (IS_CONST != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op1, free_op_data2, free_op_data1;
 -      zval **var_ptr;
 -      zval *value;
 -
 -      SAVE_OPLINE();
 -      switch (opline->extended_value) {
 -              case ZEND_ASSIGN_OBJ:
 -                      return zend_binary_assign_op_obj_helper_SPEC_VAR_UNUSED(binary_op, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -                      break;
 -              case ZEND_ASSIGN_DIM: {
 -                              zval **container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -
 -                              if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
 -                                      zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
 -                              } else if (UNEXPECTED(Z_TYPE_PP(container) == IS_OBJECT)) {
 -                                      if (IS_VAR == IS_VAR && !(free_op1.var != NULL)) {
 -                                              Z_ADDREF_PP(container);  /* undo the effect of get_obj_zval_ptr_ptr() */
 -                                      }
 -                                      return zend_binary_assign_op_obj_helper_SPEC_VAR_UNUSED(binary_op, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -                              } else {
 -                                      zval *dim = NULL;
  
 -                                      zend_fetch_dimension_address(&EX_T((opline+1)->op2.var), container, dim, IS_UNUSED, BP_VAR_RW TSRMLS_CC);
 -                                      value = get_zval_ptr((opline+1)->op1_type, &(opline+1)->op1, execute_data, &free_op_data1, BP_VAR_R);
 -                                      var_ptr = _get_zval_ptr_ptr_var((opline+1)->op2.var, execute_data, &free_op_data2 TSRMLS_CC);
 -                              }
 -                      }
 -                      break;
 -              default:
 -                      value = NULL;
 -                      var_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -                      /* do nothing */
 -                      break;
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CONST(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -
 -      if (UNEXPECTED(var_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use assign-op operators with overloaded objects nor string offsets");
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CONST(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      if (UNEXPECTED(*var_ptr == &EG(error_zval))) {
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -              }
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_MOD_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CONST != IS_UNUSED)
 +      USE_OPLINE
  
 -              if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -              CHECK_EXCEPTION();
 -              if (opline->extended_value == ZEND_ASSIGN_DIM) {
 -                      ZEND_VM_INC_OPCODE();
 -              }
 -              ZEND_VM_NEXT_OPCODE();
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CONST(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -
 -      SEPARATE_ZVAL_IF_NOT_REF(var_ptr);
 -
 -      if (UNEXPECTED(Z_TYPE_PP(var_ptr) == IS_OBJECT)
 -         && Z_OBJ_HANDLER_PP(var_ptr, get)
 -         && Z_OBJ_HANDLER_PP(var_ptr, set)) {
 -              /* proxy object */
 -              zval *objval = Z_OBJ_HANDLER_PP(var_ptr, get)(*var_ptr TSRMLS_CC);
 -              Z_ADDREF_P(objval);
 -              binary_op(objval, objval, value TSRMLS_CC);
 -              Z_OBJ_HANDLER_PP(var_ptr, set)(var_ptr, objval TSRMLS_CC);
 -              zval_ptr_dtor(&objval);
 -      } else {
 -              binary_op(*var_ptr, *var_ptr, value TSRMLS_CC);
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CONST(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      if (RETURN_VALUE_USED(opline)) {
 -              PZVAL_LOCK(*var_ptr);
 -              EX_T(opline->result.var).var.ptr = *var_ptr;
 -      }
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SL_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CONST != IS_UNUSED)
 +      USE_OPLINE
  
 -      if (opline->extended_value == ZEND_ASSIGN_DIM) {
 -              FREE_OP(free_op_data1);
 -              FREE_OP_VAR_PTR(free_op_data2);
 -              if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -              CHECK_EXCEPTION();
 -              ZEND_VM_INC_OPCODE();
 -      } else {
 -              if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -              CHECK_EXCEPTION();
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CONST(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      ZEND_VM_NEXT_OPCODE();
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CONST(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_ADD_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SR_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_binary_assign_op_helper_SPEC_VAR_UNUSED(add_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +#if 0 || (IS_CONST != IS_UNUSED)
 +      USE_OPLINE
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_SUB_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_VAR_UNUSED(sub_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CONST(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CONST(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_MUL_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_CONCAT_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_binary_assign_op_helper_SPEC_VAR_UNUSED(mul_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +#if 0 || (IS_CONST != IS_UNUSED)
 +      USE_OPLINE
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_DIV_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_VAR_UNUSED(div_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CONST(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CONST(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_MOD_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_OR_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_binary_assign_op_helper_SPEC_VAR_UNUSED(mod_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +#if 0 || (IS_CONST != IS_UNUSED)
 +      USE_OPLINE
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_SL_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_VAR_UNUSED(shift_left_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CONST(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CONST(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_SR_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_AND_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_binary_assign_op_helper_SPEC_VAR_UNUSED(shift_right_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +#if 0 || (IS_CONST != IS_UNUSED)
 +      USE_OPLINE
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_CONCAT_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_VAR_UNUSED(concat_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CONST(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CONST(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_BW_OR_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_XOR_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_binary_assign_op_helper_SPEC_VAR_UNUSED(bitwise_or_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +#if 0 || (IS_CONST != IS_UNUSED)
 +      USE_OPLINE
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_BW_AND_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_VAR_UNUSED(bitwise_and_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CONST(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CONST(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_BW_XOR_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_POW_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_binary_assign_op_helper_SPEC_VAR_UNUSED(bitwise_xor_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +#if 0 || (IS_CONST != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CONST(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CONST(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL zend_fetch_var_address_helper_SPEC_VAR_UNUSED(int type, ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_pre_incdec_property_helper_SPEC_UNUSED_CONST(int inc ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op1;
 -      zval *varname;
 -      zval **retval;
 -      zval tmp_varname;
 -      HashTable *target_symbol_table;
 -      ulong hash_value;
 +
 +      zval *object;
 +      zval *property;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      varname = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 +      object = _get_obj_zval_ptr_unused(execute_data);
 +
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
  
 -      if (IS_VAR != IS_CONST && UNEXPECTED(Z_TYPE_P(varname) != IS_STRING)) {
 -              ZVAL_COPY_VALUE(&tmp_varname, varname);
 -              zval_copy_ctor(&tmp_varname);
 -              Z_SET_REFCOUNT(tmp_varname, 1);
 -              Z_UNSET_ISREF(tmp_varname);
 -              convert_to_string(&tmp_varname);
 -              varname = &tmp_varname;
 +              HANDLE_EXCEPTION();
        }
  
 -      if (IS_UNUSED != IS_UNUSED) {
 -              zend_class_entry *ce;
 +      property = EX_CONSTANT(opline->op2);
  
 -              if (IS_UNUSED == IS_CONST) {
 -                      if (CACHED_PTR(opline->op2.literal->cache_slot)) {
 -                              ce = CACHED_PTR(opline->op2.literal->cache_slot);
 -                      } else {
 -                              ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, 0 TSRMLS_CC);
 -                              if (UNEXPECTED(ce == NULL)) {
 -                                      if (IS_VAR != IS_CONST && varname == &tmp_varname) {
 -                                              zval_dtor(&tmp_varname);
 -                                      }
 -                                      zval_ptr_dtor_nogc(&free_op1.var);
 -                                      CHECK_EXCEPTION();
 -                                      ZEND_VM_NEXT_OPCODE();
 -                              }
 -                              CACHE_PTR(opline->op2.literal->cache_slot, ce);
 -                      }
 -              } else {
 -                      ce = EX_T(opline->op2.var).class_entry;
 -              }
 -              retval = zend_std_get_static_property(ce, Z_STRVAL_P(varname), Z_STRLEN_P(varname), 0, ((IS_VAR == IS_CONST) ? opline->op1.literal : NULL) TSRMLS_CC);
 -              zval_ptr_dtor_nogc(&free_op1.var);
 -      } else {
 -              target_symbol_table = zend_get_target_symbol_table(opline->extended_value & ZEND_FETCH_TYPE_MASK TSRMLS_CC);
 -/*
 -              if (!target_symbol_table) {
 -                      CHECK_EXCEPTION();
 -                      ZEND_VM_NEXT_OPCODE();
 -              }
 -*/
 -              if (IS_VAR == IS_CONST) {
 -                      hash_value = Z_HASH_P(varname);
 -              } else {
 -                      hash_value = str_hash(Z_STRVAL_P(varname), Z_STRLEN_P(varname));
 -              }
 +      if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
  
 -              if (zend_hash_quick_find(target_symbol_table, Z_STRVAL_P(varname), Z_STRLEN_P(varname)+1, hash_value, (void **) &retval) == FAILURE) {
 -                      switch (type) {
 -                              case BP_VAR_R:
 -                              case BP_VAR_UNSET:
 -                                      zend_error(E_NOTICE,"Undefined variable: %s", Z_STRVAL_P(varname));
 -                                      /* break missing intentionally */
 -                              case BP_VAR_IS:
 -                                      retval = &EG(uninitialized_zval_ptr);
 -                                      break;
 -                              case BP_VAR_RW:
 -                                      zend_error(E_NOTICE,"Undefined variable: %s", Z_STRVAL_P(varname));
 -                                      /* break missing intentionally */
 -                              case BP_VAR_W:
 -                                      Z_ADDREF_P(&EG(uninitialized_zval));
 -                                      zend_hash_quick_update(target_symbol_table, Z_STRVAL_P(varname), Z_STRLEN_P(varname)+1, hash_value, &EG(uninitialized_zval_ptr), sizeof(zval *), (void **) &retval);
 -                                      break;
 -                              EMPTY_SWITCH_DEFAULT_CASE()
 -                      }
 -              }
 -              switch (opline->extended_value & ZEND_FETCH_TYPE_MASK) {
 -                      case ZEND_FETCH_GLOBAL:
 -                              if (IS_VAR != IS_TMP_VAR) {
 -                                      zval_ptr_dtor_nogc(&free_op1.var);
 -                              }
 -                              break;
 -                      case ZEND_FETCH_LOCAL:
 -                              zval_ptr_dtor_nogc(&free_op1.var);
 -                              break;
 -                      case ZEND_FETCH_STATIC:
 -                              zval_update_constant(retval, 1 TSRMLS_CC);
 -                              break;
 -                      case ZEND_FETCH_GLOBAL_LOCK:
 -                              if (IS_VAR == IS_VAR && !free_op1.var) {
 -                                      PZVAL_LOCK(*EX_T(opline->op1.var).var.ptr_ptr);
 +              HANDLE_EXCEPTION();
 +      }
 +
 +      do {
 +              if (IS_UNUSED != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
                                }
                                break;
 +                      }
                }
 -      }
 -
  
 -      if (IS_VAR != IS_CONST && varname == &tmp_varname) {
 -              zval_dtor(&tmp_varname);
 -      }
 -      if (opline->extended_value & ZEND_FETCH_MAKE_REF) {
 -              SEPARATE_ZVAL_TO_MAKE_IS_REF(retval);
 -      }
 -      PZVAL_LOCK(*retval);
 -      switch (type) {
 -              case BP_VAR_R:
 -              case BP_VAR_IS:
 -                      EX_T(opline->result.var).var.ptr = *retval;
 -                      break;
 -              case BP_VAR_UNSET: {
 -                      zend_free_op free_res;
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
 +                      } else {
-                               ZVAL_DEREF(zptr);
-                               SEPARATE_ZVAL_NOREF(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      SEPARATE_ZVAL_NOREF(zptr);
 -                      PZVAL_UNLOCK(*retval, &free_res);
 -                      if (retval != &EG(uninitialized_zval_ptr)) {
 -                              SEPARATE_ZVAL_IF_NOT_REF(retval);
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
++                              }
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 +                              }
-                       }
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
                        }
 -                      PZVAL_LOCK(*retval);
 -                      FREE_OP_VAR_PTR(free_res);
 +              } else {
 +                      zend_pre_incdec_overloaded_property(object, property, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
                }
 -              /* break missing intentionally */
 -              default:
 -                      EX_T(opline->result.var).var.ptr_ptr = retval;
 -                      break;
 -      }
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +      } while (0);
  
 -static int ZEND_FASTCALL  ZEND_FETCH_R_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_fetch_var_address_helper_SPEC_VAR_UNUSED(BP_VAR_R, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_W_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_INC_OBJ_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_fetch_var_address_helper_SPEC_VAR_UNUSED(BP_VAR_W, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_UNUSED_CONST(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_RW_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_DEC_OBJ_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_fetch_var_address_helper_SPEC_VAR_UNUSED(BP_VAR_RW, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_UNUSED_CONST(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_FUNC_ARG_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_post_incdec_property_helper_SPEC_UNUSED_CONST(int inc ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
  
 -      return zend_fetch_var_address_helper_SPEC_VAR_UNUSED(zend_is_by_ref_func_arg_fetch(opline, EX(call) TSRMLS_CC) ? BP_VAR_W : BP_VAR_R, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +      zval *object;
 +      zval *property;
 +      zval *zptr;
  
 -static int ZEND_FASTCALL  ZEND_FETCH_UNSET_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_fetch_var_address_helper_SPEC_VAR_UNUSED(BP_VAR_UNSET, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +      SAVE_OPLINE();
 +      object = _get_obj_zval_ptr_unused(execute_data);
  
 -static int ZEND_FASTCALL  ZEND_FETCH_IS_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_fetch_var_address_helper_SPEC_VAR_UNUSED(BP_VAR_IS, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
  
 -static int ZEND_FASTCALL  ZEND_FETCH_DIM_W_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op1;
 -      zval **container;
 +              HANDLE_EXCEPTION();
 +      }
  
 -      SAVE_OPLINE();
 -      container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 +      property = EX_CONSTANT(opline->op2);
  
 -      if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
 -      }
 -      zend_fetch_dimension_address(&EX_T(opline->result.var), container, NULL, IS_UNUSED, BP_VAR_W TSRMLS_CC);
 +      if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
  
 -      if (IS_VAR == IS_VAR && (free_op1.var != NULL) && READY_TO_DESTROY(free_op1.var)) {
 -              EXTRACT_ZVAL_PTR(&EX_T(opline->result.var));
 +              HANDLE_EXCEPTION();
        }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -
 -      /* We are going to assign the result by reference */
 -      if (UNEXPECTED(opline->extended_value != 0)) {
 -              zval **retval_ptr = EX_T(opline->result.var).var.ptr_ptr;
  
 -              if (retval_ptr) {
 -                      Z_DELREF_PP(retval_ptr);
 -                      SEPARATE_ZVAL_TO_MAKE_IS_REF(retval_ptr);
 -                      Z_ADDREF_PP(retval_ptr);
 +      do {
 +              if (IS_UNUSED != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                              break;
 +                      }
                }
 -      }
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +              /* here we are sure we are dealing with an object */
  
 -static int ZEND_FASTCALL  ZEND_FETCH_DIM_RW_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op1;
 -      zval **container;
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
-                               }
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                      } else {
-                               ZVAL_DEREF(zptr);
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               zval_opt_copy_ctor(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      zval_opt_copy_ctor(zptr);
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
 +                              }
 +                      }
 +              } else {
 +                      zend_post_incdec_overloaded_property(object, property, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, EX_VAR(opline->result.var));
 +              }
 +      } while (0);
  
 -      SAVE_OPLINE();
 -      container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
  
 -      if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
 -      }
 -      zend_fetch_dimension_address(&EX_T(opline->result.var), container, NULL, IS_UNUSED, BP_VAR_RW TSRMLS_CC);
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
 +}
  
 -      if (IS_VAR == IS_VAR && (free_op1.var != NULL) && READY_TO_DESTROY(free_op1.var)) {
 -              EXTRACT_ZVAL_PTR(&EX_T(opline->result.var));
 -      }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_INC_OBJ_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_UNUSED_CONST(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_DIM_FUNC_ARG_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_DEC_OBJ_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_UNUSED_CONST(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +}
 +
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_OBJ_R_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
 -      zend_free_op free_op1;
 +
 +      zval *container;
 +
 +      zval *offset;
  
        SAVE_OPLINE();
 +      container = _get_obj_zval_ptr_unused(execute_data);
  
 -      if (zend_is_by_ref_func_arg_fetch(opline, EX(call) TSRMLS_CC)) {
 -              zval **container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -              if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
 -                      zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +
 +              HANDLE_EXCEPTION();
 +      }
 +
 +      offset = EX_CONSTANT(opline->op2);
 +
 +      if (IS_UNUSED == IS_CONST ||
 +          (IS_UNUSED != IS_UNUSED && UNEXPECTED(Z_TYPE_P(container) != IS_OBJECT))) {
 +              if ((IS_UNUSED & (IS_VAR|IS_CV)) && Z_ISREF_P(container)) {
 +                      container = Z_REFVAL_P(container);
 +                      if (UNEXPECTED(Z_TYPE_P(container) != IS_OBJECT)) {
 +                              goto fetch_obj_r_no_object;
 +                      }
 +              } else {
 +                      goto fetch_obj_r_no_object;
                }
 -              zend_fetch_dimension_address(&EX_T(opline->result.var), container, NULL, IS_UNUSED, BP_VAR_W TSRMLS_CC);
 -              if (IS_VAR == IS_VAR && (free_op1.var != NULL) && READY_TO_DESTROY(free_op1.var)) {
 -                      EXTRACT_ZVAL_PTR(&EX_T(opline->result.var));
 +      }
 +
 +      /* here we are sure we are dealing with an object */
 +      do {
 +              zend_object *zobj = Z_OBJ_P(container);
 +              zval *retval;
 +
 +              if (IS_CONST == IS_CONST &&
 +                      EXPECTED(zobj->ce == CACHED_PTR(Z_CACHE_SLOT_P(offset)))) {
 +                      uint32_t prop_offset = (uint32_t)(intptr_t)CACHED_PTR(Z_CACHE_SLOT_P(offset) + sizeof(void*));
 +
 +                      if (EXPECTED(prop_offset != (uint32_t)ZEND_DYNAMIC_PROPERTY_OFFSET)) {
 +                              retval = OBJ_PROP(zobj, prop_offset);
 +                              if (EXPECTED(Z_TYPE_P(retval) != IS_UNDEF)) {
 +                                      ZVAL_COPY(EX_VAR(opline->result.var), retval);
 +                                      break;
 +                              }
 +                      } else if (EXPECTED(zobj->properties != NULL)) {
 +                              retval = zend_hash_find(zobj->properties, Z_STR_P(offset));
 +                              if (EXPECTED(retval)) {
 +                                      ZVAL_COPY(EX_VAR(opline->result.var), retval);
 +                                      break;
 +                              }
 +                      }
                }
  
 -              if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -      } else {
 -              zval *container;
 +              if (UNEXPECTED(zobj->handlers->read_property == NULL)) {
 +fetch_obj_r_no_object:
 +                      zend_error(E_NOTICE, "Trying to get property of non-object");
 +                      ZVAL_NULL(EX_VAR(opline->result.var));
 +              } else {
 +                      retval = zobj->handlers->read_property(container, offset, BP_VAR_R, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(offset)) : NULL), EX_VAR(opline->result.var));
  
 -              if (IS_UNUSED == IS_UNUSED) {
 -                      zend_error_noreturn(E_ERROR, "Cannot use [] for reading");
 +                      if (retval != EX_VAR(opline->result.var)) {
 +                              ZVAL_COPY(EX_VAR(opline->result.var), retval);
 +                      }
                }
 -              container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -              zend_fetch_dimension_address_read(&EX_T(opline->result.var), container, NULL, IS_UNUSED, BP_VAR_R TSRMLS_CC);
 +      } while (0);
  
 -              zval_ptr_dtor_nogc(&free_op1.var);
 -      }
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_DIM_SPEC_VAR_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_OBJ_W_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
        zend_free_op free_op1;
@@@ -25163,679 -23657,871 +25211,691 @@@ static ZEND_OPCODE_HANDLER_RET ZEND_FAS
        }
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_OBJ_UNSET_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_YIELD_SPEC_UNUSED_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
 -      zend_free_op free_op1, free_res;
 -      zval **container;
 -      zval *property;
 +
 +      zend_generator *generator = zend_get_running_generator(execute_data);
  
        SAVE_OPLINE();
 -      container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -      property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
 +      if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
 +              zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
  
 -      if (IS_VAR == IS_CV) {
 -              if (container != &EG(uninitialized_zval_ptr)) {
 -                      SEPARATE_ZVAL_IF_NOT_REF(container);
 -              }
 -      }
 -      if (0) {
 -              MAKE_REAL_ZVAL_PTR(property);
 -      }
 -      if (IS_VAR == IS_VAR && UNEXPECTED(container == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an object");
 -      }
 -      zend_fetch_property_address(&EX_T(opline->result.var), container, property, ((IS_CV == IS_CONST) ? opline->op2.literal : NULL), BP_VAR_UNSET TSRMLS_CC);
 -      if (0) {
 -              zval_ptr_dtor(&property);
 -      } else {
  
 +              HANDLE_EXCEPTION();
        }
 -      if (IS_VAR == IS_VAR && (free_op1.var != NULL) && READY_TO_DESTROY(free_op1.var)) {
 -              EXTRACT_ZVAL_PTR(&EX_T(opline->result.var));
 -      }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
  
 -      PZVAL_UNLOCK(*EX_T(opline->result.var).var.ptr_ptr, &free_res);
 -      if (EX_T(opline->result.var).var.ptr_ptr != &EG(uninitialized_zval_ptr)) {
 -              SEPARATE_ZVAL_IF_NOT_REF(EX_T(opline->result.var).var.ptr_ptr);
 -      }
 -      PZVAL_LOCK(*EX_T(opline->result.var).var.ptr_ptr);
 -      FREE_OP_VAR_PTR(free_res);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +      /* Destroy the previously yielded value */
 +      zval_ptr_dtor(&generator->value);
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_OBJ_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op1;
 -      zval **object_ptr;
 -      zval *property_name;
 +      /* Destroy the previously yielded key */
 +      zval_ptr_dtor(&generator->key);
  
 -      SAVE_OPLINE();
 -      object_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -      property_name = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
 +      /* Set the new yielded value */
 +      if (IS_UNUSED != IS_UNUSED) {
  
 -      if (0) {
 -              MAKE_REAL_ZVAL_PTR(property_name);
 -      }
 -      if (IS_VAR == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
 -      }
 -      zend_assign_to_object(RETURN_VALUE_USED(opline)?&EX_T(opline->result.var).var.ptr:NULL, object_ptr, property_name, (opline+1)->op1_type, &(opline+1)->op1, execute_data, ZEND_ASSIGN_OBJ, ((IS_CV == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -      if (0) {
 -              zval_ptr_dtor(&property_name);
 -      } else {
  
 -      }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -      /* assign_obj has two opcodes! */
 -      CHECK_EXCEPTION();
 -      ZEND_VM_INC_OPCODE();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +              if (UNEXPECTED(EX(func)->op_array.fn_flags & ZEND_ACC_RETURN_REFERENCE)) {
 +                      /* Constants and temporary variables aren't yieldable by reference,
 +                       * but we still allow them with a notice. */
 +                      if (IS_UNUSED == IS_CONST || IS_UNUSED == IS_TMP_VAR) {
 +                              zval *value;
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_DIM_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op1;
 -      zval **object_ptr;
 +                              zend_error(E_NOTICE, "Only variable references should be yielded by reference");
  
 -      SAVE_OPLINE();
 -      object_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 +                              value = NULL;
 +                              ZVAL_COPY_VALUE(&generator->value, value);
 +                              if (IS_UNUSED == IS_CONST) {
 +                                      if (UNEXPECTED(Z_OPT_COPYABLE(generator->value))) {
 +                                              zval_copy_ctor_func(&generator->value);
 +                                      }
 +                              }
 +                      } else {
 +                              zval *value_ptr = NULL;
  
 -      if (IS_VAR == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
 -      }
 -      if (Z_TYPE_PP(object_ptr) == IS_OBJECT) {
 +                              if (IS_UNUSED == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
 +                                      zend_throw_error(NULL, "Cannot yield string offsets by reference");
  
 -              zval *property_name = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
 +                                      HANDLE_EXCEPTION();
 +                              }
  
 -              if (0) {
 -                      MAKE_REAL_ZVAL_PTR(property_name);
 -              }
 -              zend_assign_to_object(RETURN_VALUE_USED(opline)?&EX_T(opline->result.var).var.ptr:NULL, object_ptr, property_name, (opline+1)->op1_type, &(opline+1)->op1, execute_data, ZEND_ASSIGN_DIM, ((IS_CV == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -              if (0) {
 -                      zval_ptr_dtor(&property_name);
 +                              /* If a function call result is yielded and the function did
 +                               * not return by reference we throw a notice. */
 +                              if (IS_UNUSED == IS_VAR &&
 +                                  (value_ptr == &EG(uninitialized_zval) ||
 +                                   (opline->extended_value == ZEND_RETURNS_FUNCTION &&
 +                                    !(Z_VAR_FLAGS_P(value_ptr) & IS_VAR_RET_REF)))) {
 +                                      zend_error(E_NOTICE, "Only variable references should be yielded by reference");
 +                              } else {
 +                                      ZVAL_MAKE_REF(value_ptr);
 +                              }
 +                              ZVAL_COPY(&generator->value, value_ptr);
 +
 +                      }
                } else {
 +                      zval *value = NULL;
 +
 +                      /* Consts, temporary variables and references need copying */
 +                      if (IS_UNUSED == IS_CONST) {
 +                              ZVAL_COPY_VALUE(&generator->value, value);
 +                              if (UNEXPECTED(Z_OPT_COPYABLE(generator->value))) {
 +                                      zval_copy_ctor_func(&generator->value);
 +                              }
 +                      } else if (IS_UNUSED == IS_TMP_VAR) {
 +                              ZVAL_COPY_VALUE(&generator->value, value);
 +            } else if ((IS_UNUSED & (IS_VAR|IS_CV)) && Z_ISREF_P(value)) {
 +                              ZVAL_COPY(&generator->value, Z_REFVAL_P(value));
  
 +                      } else {
 +                              ZVAL_COPY_VALUE(&generator->value, value);
 +                              if (IS_UNUSED == IS_CV) {
 +                                      if (Z_OPT_REFCOUNTED_P(value)) Z_ADDREF_P(value);
 +                              }
 +                      }
                }
        } else {
 -              zend_free_op free_op_data1, free_op_data2;
 -              zval *value;
 -              zval *dim = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
 -              zval **variable_ptr_ptr;
 +              /* If no value was specified yield null */
 +              ZVAL_NULL(&generator->value);
 +      }
  
 -              zend_fetch_dimension_address(&EX_T((opline+1)->op2.var), object_ptr, dim, IS_CV, BP_VAR_W TSRMLS_CC);
 +      /* Set the new yielded key */
 +      if (IS_UNUSED != IS_UNUSED) {
  
 -              value = get_zval_ptr((opline+1)->op1_type, &(opline+1)->op1, execute_data, &free_op_data1, BP_VAR_R);
 -              variable_ptr_ptr = _get_zval_ptr_ptr_var((opline+1)->op2.var, execute_data, &free_op_data2 TSRMLS_CC);
 -              if (UNEXPECTED(variable_ptr_ptr == NULL)) {
 -                      if (zend_assign_to_string_offset(&EX_T((opline+1)->op2.var), value, (opline+1)->op1_type TSRMLS_CC)) {
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      zval *retval;
 +              zval *key = NULL;
  
 -                                      ALLOC_ZVAL(retval);
 -                                      ZVAL_STRINGL(retval, Z_STRVAL_P(EX_T((opline+1)->op2.var).str_offset.str)+EX_T((opline+1)->op2.var).str_offset.offset, 1, 1);
 -                                      INIT_PZVAL(retval);
 -                                      EX_T(opline->result.var).var.ptr = retval;
 -                              }
 -                      } else if (RETURN_VALUE_USED(opline)) {
 -                              PZVAL_LOCK(&EG(uninitialized_zval));
 -                              EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -                      }
 -              } else if (UNEXPECTED(*variable_ptr_ptr == &EG(error_zval))) {
 -                      if (IS_TMP_FREE(free_op_data1)) {
 -                              zval_dtor(value);
 -                      }
 -                      if (RETURN_VALUE_USED(opline)) {
 -                              PZVAL_LOCK(&EG(uninitialized_zval));
 -                              EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 +              /* Consts, temporary variables and references need copying */
 +              if (IS_UNUSED == IS_CONST) {
 +                      ZVAL_COPY_VALUE(&generator->key, key);
 +                      if (UNEXPECTED(Z_OPT_COPYABLE(generator->key))) {
 +                              zval_copy_ctor_func(&generator->key);
                        }
 +              } else if (IS_UNUSED == IS_TMP_VAR) {
 +                      ZVAL_COPY_VALUE(&generator->key, key);
 +              } else if ((IS_UNUSED & (IS_VAR|IS_CV)) && Z_ISREF_P(key)) {
 +                      ZVAL_COPY(&generator->key, Z_REFVAL_P(key));
 +
                } else {
 -                      if ((opline+1)->op1_type == IS_TMP_VAR) {
 -                              value = zend_assign_tmp_to_variable(variable_ptr_ptr, value TSRMLS_CC);
 -                      } else if ((opline+1)->op1_type == IS_CONST) {
 -                              value = zend_assign_const_to_variable(variable_ptr_ptr, value TSRMLS_CC);
 -                      } else {
 -                              value = zend_assign_to_variable(variable_ptr_ptr, value TSRMLS_CC);
 -                      }
 -                      if (RETURN_VALUE_USED(opline)) {
 -                              PZVAL_LOCK(value);
 -                              EX_T(opline->result.var).var.ptr = value;
 +                      ZVAL_COPY_VALUE(&generator->key, key);
 +                      if (IS_UNUSED == IS_CV) {
 +                              if (Z_OPT_REFCOUNTED_P(key)) Z_ADDREF_P(key);
                        }
                }
 -              FREE_OP_VAR_PTR(free_op_data2);
 -              FREE_OP_IF_VAR(free_op_data1);
 +
 +              if (Z_TYPE(generator->key) == IS_LONG
 +                  && Z_LVAL(generator->key) > generator->largest_used_integer_key
 +              ) {
 +                      generator->largest_used_integer_key = Z_LVAL(generator->key);
 +              }
 +      } else {
 +              /* If no key was specified we use auto-increment keys */
 +              generator->largest_used_integer_key++;
 +              ZVAL_LONG(&generator->key, generator->largest_used_integer_key);
        }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 -      /* assign_dim has two opcodes! */
 -      CHECK_EXCEPTION();
 +
 +      if (RETURN_VALUE_USED(opline)) {
 +              /* If the return value of yield is used set the send
 +               * target and initialize it to NULL */
 +              generator->send_target = EX_VAR(opline->result.var);
 +              ZVAL_NULL(generator->send_target);
 +      } else {
 +              generator->send_target = NULL;
 +      }
 +
 +      /* We increment to the next op, so we are at the correct position when the
 +       * generator is resumed. */
        ZEND_VM_INC_OPCODE();
 -      ZEND_VM_NEXT_OPCODE();
 +
 +      /* The GOTO VM uses a local opline variable. We need to set the opline
 +       * variable in execute_data so we don't resume at an old position. */
 +      SAVE_OPLINE();
 +
 +      ZEND_VM_RETURN();
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op1;
 +      zend_free_op free_op_data1;
 +      zval *object;
 +      zval *property;
        zval *value;
 -      zval **variable_ptr_ptr;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      value = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
 -      variable_ptr_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 +      object = _get_obj_zval_ptr_unused(execute_data);
  
 -      if (IS_VAR == IS_VAR && UNEXPECTED(variable_ptr_ptr == NULL)) {
 -              if (zend_assign_to_string_offset(&EX_T(opline->op1.var), value, IS_CV TSRMLS_CC)) {
 -                      if (RETURN_VALUE_USED(opline)) {
 -                              zval *retval;
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
 +
 +              HANDLE_EXCEPTION();
 +      }
 +
 +      property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
 +
 +      if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an object");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
 +
 +              HANDLE_EXCEPTION();
 +      }
 +
 +      do {
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
  
 -                              ALLOC_ZVAL(retval);
 -                              ZVAL_STRINGL(retval, Z_STRVAL_P(EX_T(opline->op1.var).str_offset.str)+EX_T(opline->op1.var).str_offset.offset, 1, 1);
 -                              INIT_PZVAL(retval);
 -                              EX_T(opline->result.var).var.ptr = retval;
 +              if (IS_UNUSED != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to assign property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
 +                              break;
                        }
 -              } else if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -              }
 -      } else if (IS_VAR == IS_VAR && UNEXPECTED(*variable_ptr_ptr == &EG(error_zval))) {
 -              if (0) {
 -                      zval_dtor(value);
                }
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -              }
 -      } else {
 -              if (IS_CV == IS_TMP_VAR) {
 -                      value = zend_assign_tmp_to_variable(variable_ptr_ptr, value TSRMLS_CC);
 -              } else if (IS_CV == IS_CONST) {
 -                      value = zend_assign_const_to_variable(variable_ptr_ptr, value TSRMLS_CC);
 +
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
++                              }
++                      } else {
++                              ZVAL_DEREF(zptr);
++                              SEPARATE_ZVAL_NOREF(zptr);
 +
-                       ZVAL_DEREF(zptr);
-                       SEPARATE_ZVAL_NOREF(zptr);
-                       binary_op(zptr, zptr, value);
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
++                              binary_op(zptr, zptr, value);
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
++                              }
 +                      }
                } else {
 -                      value = zend_assign_to_variable(variable_ptr_ptr, value TSRMLS_CC);
 +                      zend_assign_op_overloaded_property(object, property, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), value, binary_op, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
                }
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(value);
 -                      EX_T(opline->result.var).var.ptr = value;
 -              }
 -      }
 +      } while (0);
  
 -      if (IS_VAR == IS_VAR && (free_op1.var != NULL)) {
 -              zval_ptr_dtor_nogc(&value);
 -      }
 +      FREE_OP(free_op_data1);
  
 -      /* zend_assign_to_variable() always takes care of op2, never free it! */
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      /* assign_obj has two opcodes! */
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_REF_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op1, free_op2;
 -      zval **variable_ptr_ptr;
 -      zval **value_ptr_ptr;
 +      zend_free_op free_op_data1;
 +      zval *var_ptr, rv;
 +      zval *value, *container, *dim;
  
        SAVE_OPLINE();
 -      value_ptr_ptr = _get_zval_ptr_ptr_cv_BP_VAR_W(execute_data, opline->op2.var TSRMLS_CC);
 +      container = _get_obj_zval_ptr_unused(execute_data);
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -      if (IS_VAR == IS_VAR && UNEXPECTED(EX_T(opline->op1.var).var.ptr_ptr == &EX_T(opline->op1.var).var.ptr)) {
 -              zend_error_noreturn(E_ERROR, "Cannot assign by reference to overloaded object");
 +              HANDLE_EXCEPTION();
        }
 +      if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an array");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -      if (IS_CV == IS_VAR &&
 -          value_ptr_ptr &&
 -          !Z_ISREF_PP(value_ptr_ptr) &&
 -          opline->extended_value == ZEND_RETURNS_FUNCTION &&
 -          !EX_T(opline->op2.var).var.fcall_returned_reference) {
 -              if (free_op2.var == NULL) {
 -                      PZVAL_LOCK(*value_ptr_ptr); /* undo the effect of get_zval_ptr_ptr() */
 -              }
 -              zend_error(E_STRICT, "Only variables should be assigned by reference");
 -              if (UNEXPECTED(EG(exception) != NULL)) {
 -
 -                      HANDLE_EXCEPTION();
 -              }
 -              return ZEND_ASSIGN_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -      } else if (IS_CV == IS_VAR && opline->extended_value == ZEND_RETURNS_NEW) {
 -              PZVAL_LOCK(*value_ptr_ptr);
 +              HANDLE_EXCEPTION();
        }
  
 -      variable_ptr_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -      if ((IS_CV == IS_VAR && UNEXPECTED(value_ptr_ptr == NULL)) ||
 -          (IS_VAR == IS_VAR && UNEXPECTED(variable_ptr_ptr == NULL))) {
 -              zend_error_noreturn(E_ERROR, "Cannot create references to/from string offsets nor overloaded objects");
 -      }
 -      zend_assign_to_variable_reference(variable_ptr_ptr, value_ptr_ptr TSRMLS_CC);
 +      dim = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
  
 -      if (IS_CV == IS_VAR && opline->extended_value == ZEND_RETURNS_NEW) {
 -              Z_DELREF_PP(variable_ptr_ptr);
 -      }
 +      do {
 +              if (IS_UNUSED == IS_UNUSED || UNEXPECTED(Z_TYPE_P(container) != IS_ARRAY)) {
 +                      if (IS_UNUSED != IS_UNUSED) {
 +                              ZVAL_DEREF(container);
 +                      }
 +                      if (IS_UNUSED == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
 +                              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +                              zend_binary_assign_op_obj_dim(container, dim, value, UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL, binary_op);
 +                              break;
 +                      }
 +              }
  
 -      if (RETURN_VALUE_USED(opline)) {
 -              PZVAL_LOCK(*variable_ptr_ptr);
 -              EX_T(opline->result.var).var.ptr = *variable_ptr_ptr;
 -      }
 +              zend_fetch_dimension_address_RW(&rv, container, dim, IS_CV);
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +              ZEND_ASSERT(Z_TYPE(rv) == IS_INDIRECT);
 +              var_ptr = Z_INDIRECT(rv);
  
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 +              if (UNEXPECTED(var_ptr == NULL)) {
 +                      zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +                      FREE_OP(free_op_data1);
  
 -static int ZEND_FASTCALL  ZEND_INIT_METHOD_CALL_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zval *function_name;
 -      char *function_name_strval;
 -      int function_name_strlen;
 -      zend_free_op free_op1;
 -      call_slot *call = EX(call_slots) + opline->result.num;
 -
 -      SAVE_OPLINE();
 -
 -      function_name = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
 -
 -      if (IS_CV != IS_CONST &&
 -          UNEXPECTED(Z_TYPE_P(function_name) != IS_STRING)) {
 -              if (UNEXPECTED(EG(exception) != NULL)) {
                        HANDLE_EXCEPTION();
                }
 -              zend_error_noreturn(E_ERROR, "Method name must be a string");
 -      }
 -
 -      function_name_strval = Z_STRVAL_P(function_name);
 -      function_name_strlen = Z_STRLEN_P(function_name);
 -
 -      call->object = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -
 -      if (EXPECTED(call->object != NULL) &&
 -          EXPECTED(Z_TYPE_P(call->object) == IS_OBJECT)) {
 -              call->called_scope = Z_OBJCE_P(call->object);
 -
 -              if (IS_CV != IS_CONST ||
 -                  (call->fbc = CACHED_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, call->called_scope)) == NULL) {
 -                  zval *object = call->object;
  
 -                      if (UNEXPECTED(Z_OBJ_HT_P(call->object)->get_method == NULL)) {
 -                              zend_error_noreturn(E_ERROR, "Object does not support method calls");
 +              if (UNEXPECTED(var_ptr == &EG(error_zval))) {
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
                        }
 +              } else {
 +                      ZVAL_DEREF(var_ptr);
 +                      SEPARATE_ZVAL_NOREF(var_ptr);
  
 -                      /* First, locate the function. */
 -                      call->fbc = Z_OBJ_HT_P(call->object)->get_method(&call->object, function_name_strval, function_name_strlen, ((IS_CV == IS_CONST) ? (opline->op2.literal + 1) : NULL) TSRMLS_CC);
 -                      if (UNEXPECTED(call->fbc == NULL)) {
 -                              zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", Z_OBJ_CLASS_NAME_P(call->object), function_name_strval);
 -                      }
 -                      if (IS_CV == IS_CONST &&
 -                          EXPECTED(call->fbc->type <= ZEND_USER_FUNCTION) &&
 -                          EXPECTED((call->fbc->common.fn_flags & (ZEND_ACC_CALL_VIA_HANDLER|ZEND_ACC_NEVER_CACHE)) == 0) &&
 -                          EXPECTED(call->object == object)) {
 -                              CACHE_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, call->called_scope, call->fbc);
 -                      }
 -              }
 -      } else {
 -              if (UNEXPECTED(EG(exception) != NULL)) {
 +                      binary_op(var_ptr, var_ptr, value);
  
 -                      HANDLE_EXCEPTION();
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_COPY(EX_VAR(opline->result.var), var_ptr);
 +                      }
                }
 -              zend_error_noreturn(E_ERROR, "Call to a member function %s() on %s", function_name_strval, zend_get_type_by_const(Z_TYPE_P(call->object)));
 -      }
 +      } while (0);
  
 -      if ((call->fbc->common.fn_flags & ZEND_ACC_STATIC) != 0) {
 -              call->object = NULL;
 -      } else {
 -              if (!PZVAL_IS_REF(call->object)) {
 -                      Z_ADDREF_P(call->object); /* For $this pointer */
 -              } else {
 -                      zval *this_ptr;
 -                      ALLOC_ZVAL(this_ptr);
 -                      INIT_PZVAL_COPY(this_ptr, call->object);
 -                      zval_copy_ctor(this_ptr);
 -                      call->object = this_ptr;
 -              }
 -      }
 +      FREE_OP(free_op_data1);
  
 -      call->num_additional_args = 0;
 -      call->is_ctor_call = 0;
 -      EX(call) = call;
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
 +}
  
 -      zval_ptr_dtor_nogc(&free_op1.var);
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_ADD_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CV(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_INIT_STATIC_METHOD_CALL_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SUB_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || (IS_CV != IS_UNUSED)
        USE_OPLINE
 -      zval *function_name;
 -      zend_class_entry *ce;
 -      call_slot *call = EX(call_slots) + opline->result.num;
  
 -      SAVE_OPLINE();
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CV(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      if (IS_VAR == IS_CONST) {
 -              /* no function found. try a static method in class */
 -              if (CACHED_PTR(opline->op1.literal->cache_slot)) {
 -                      ce = CACHED_PTR(opline->op1.literal->cache_slot);
 -              } else {
 -                      ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), opline->op1.literal + 1, opline->extended_value TSRMLS_CC);
 -                      if (UNEXPECTED(EG(exception) != NULL)) {
 -                              HANDLE_EXCEPTION();
 -                      }
 -                      if (UNEXPECTED(ce == NULL)) {
 -                              zend_error_noreturn(E_ERROR, "Class '%s' not found", Z_STRVAL_P(opline->op1.zv));
 -                      }
 -                      CACHE_PTR(opline->op1.literal->cache_slot, ce);
 -              }
 -              call->called_scope = ce;
 -      } else {
 -              ce = EX_T(opline->op1.var).class_entry;
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_MUL_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -              if (opline->extended_value == ZEND_FETCH_CLASS_PARENT || opline->extended_value == ZEND_FETCH_CLASS_SELF) {
 -                      call->called_scope = EG(called_scope);
 -              } else {
 -                      call->called_scope = ce;
 -              }
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CV(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      if (IS_VAR == IS_CONST &&
 -          IS_CV == IS_CONST &&
 -          CACHED_PTR(opline->op2.literal->cache_slot)) {
 -              call->fbc = CACHED_PTR(opline->op2.literal->cache_slot);
 -      } else if (IS_VAR != IS_CONST &&
 -                 IS_CV == IS_CONST &&
 -                 (call->fbc = CACHED_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce))) {
 -              /* do nothing */
 -      } else if (IS_CV != IS_UNUSED) {
 -              char *function_name_strval = NULL;
 -              int function_name_strlen = 0;
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_DIV_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CV(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -              if (IS_CV == IS_CONST) {
 -                      function_name_strval = Z_STRVAL_P(opline->op2.zv);
 -                      function_name_strlen = Z_STRLEN_P(opline->op2.zv);
 -              } else {
 -                      function_name = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_MOD_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -                      if (UNEXPECTED(Z_TYPE_P(function_name) != IS_STRING)) {
 -                              if (UNEXPECTED(EG(exception) != NULL)) {
 -                                      HANDLE_EXCEPTION();
 -                              }
 -                              zend_error_noreturn(E_ERROR, "Function name must be a string");
 -                      } else {
 -                              function_name_strval = Z_STRVAL_P(function_name);
 -                              function_name_strlen = Z_STRLEN_P(function_name);
 -                      }
 -              }
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CV(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -              if (function_name_strval) {
 -                      if (ce->get_static_method) {
 -                              call->fbc = ce->get_static_method(ce, function_name_strval, function_name_strlen TSRMLS_CC);
 -                      } else {
 -                              call->fbc = zend_std_get_static_method(ce, function_name_strval, function_name_strlen, ((IS_CV == IS_CONST) ? (opline->op2.literal + 1) : NULL) TSRMLS_CC);
 -                      }
 -                      if (UNEXPECTED(call->fbc == NULL)) {
 -                              zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", ce->name, function_name_strval);
 -                      }
 -                      if (IS_CV == IS_CONST &&
 -                          EXPECTED(call->fbc->type <= ZEND_USER_FUNCTION) &&
 -                          EXPECTED((call->fbc->common.fn_flags & (ZEND_ACC_CALL_VIA_HANDLER|ZEND_ACC_NEVER_CACHE)) == 0)) {
 -                              if (IS_VAR == IS_CONST) {
 -                                      CACHE_PTR(opline->op2.literal->cache_slot, call->fbc);
 -                              } else {
 -                                      CACHE_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce, call->fbc);
 -                              }
 -                      }
 -              }
 -              if (IS_CV != IS_CONST) {
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SL_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -              }
 -      } else {
 -              if (UNEXPECTED(ce->constructor == NULL)) {
 -                      zend_error_noreturn(E_ERROR, "Cannot call constructor");
 -              }
 -              if (EG(This) && Z_OBJCE_P(EG(This)) != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
 -                      zend_error_noreturn(E_ERROR, "Cannot call private %s::__construct()", ce->name);
 -              }
 -              call->fbc = ce->constructor;
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CV(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -
 -      if (call->fbc->common.fn_flags & ZEND_ACC_STATIC) {
 -              call->object = NULL;
 -      } else {
 -              if (EG(This) &&
 -                  Z_OBJ_HT_P(EG(This))->get_class_entry &&
 -                  !instanceof_function(Z_OBJCE_P(EG(This)), ce TSRMLS_CC)) {
 -                  /* We are calling method of the other (incompatible) class,
 -                     but passing $this. This is done for compatibility with php-4. */
 -                      if (call->fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
 -                              zend_error(E_DEPRECATED, "Non-static method %s::%s() should not be called statically, assuming $this from incompatible context", call->fbc->common.scope->name, call->fbc->common.function_name);
 -                      } else {
 -                              /* An internal function assumes $this is present and won't check that. So PHP would crash by allowing the call. */
 -                              zend_error_noreturn(E_ERROR, "Non-static method %s::%s() cannot be called statically, assuming $this from incompatible context", call->fbc->common.scope->name, call->fbc->common.function_name);
 -                      }
 -              }
 -              if ((call->object = EG(This))) {
 -                      Z_ADDREF_P(call->object);
 -                      call->called_scope = Z_OBJCE_P(call->object);
 -              }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      call->num_additional_args = 0;
 -      call->is_ctor_call = 0;
 -      EX(call) = call;
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SR_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CV(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_CASE_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_CONCAT_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || (IS_CV != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op1;
 -
 -      SAVE_OPLINE();
 -      is_equal_function(&EX_T(opline->result.var).tmp_var,
 -                               _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
 -                               _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CV(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ADD_ARRAY_ELEMENT_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_OR_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || (IS_CV != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op1;
 -      zval *expr_ptr;
 -
 -      SAVE_OPLINE();
 -      if ((IS_VAR == IS_VAR || IS_VAR == IS_CV) && opline->extended_value) {
 -              zval **expr_ptr_ptr = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
  
 -              if (IS_VAR == IS_VAR && UNEXPECTED(expr_ptr_ptr == NULL)) {
 -                      zend_error_noreturn(E_ERROR, "Cannot create references to/from string offsets");
 -              }
 -              SEPARATE_ZVAL_TO_MAKE_IS_REF(expr_ptr_ptr);
 -              expr_ptr = *expr_ptr_ptr;
 -              Z_ADDREF_P(expr_ptr);
 -      } else {
 -              expr_ptr=_get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -              if (0) { /* temporary variable */
 -                      zval *new_expr;
 -
 -                      ALLOC_ZVAL(new_expr);
 -                      INIT_PZVAL_COPY(new_expr, expr_ptr);
 -                      expr_ptr = new_expr;
 -              } else if (IS_VAR == IS_CONST || PZVAL_IS_REF(expr_ptr)) {
 -                      zval *new_expr;
 -
 -                      ALLOC_ZVAL(new_expr);
 -                      INIT_PZVAL_COPY(new_expr, expr_ptr);
 -                      expr_ptr = new_expr;
 -                      zendi_zval_copy_ctor(*expr_ptr);
 -                      zval_ptr_dtor_nogc(&free_op1.var);
 -              } else if (IS_VAR == IS_CV) {
 -                      Z_ADDREF_P(expr_ptr);
 -              }
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CV(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      if (IS_CV != IS_UNUSED) {
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_AND_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -              zval *offset = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
 -              ulong hval;
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CV(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -              switch (Z_TYPE_P(offset)) {
 -                      case IS_DOUBLE:
 -                              hval = zend_dval_to_lval(Z_DVAL_P(offset));
 -                              goto num_index;
 -                      case IS_LONG:
 -                      case IS_BOOL:
 -                              hval = Z_LVAL_P(offset);
 -num_index:
 -                              zend_hash_index_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), hval, &expr_ptr, sizeof(zval *), NULL);
 -                              break;
 -                      case IS_STRING:
 -                              if (IS_CV == IS_CONST) {
 -                                      hval = Z_HASH_P(offset);
 -                              } else {
 -                                      ZEND_HANDLE_NUMERIC_EX(Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, goto num_index);
 -                                      hval = str_hash(Z_STRVAL_P(offset), Z_STRLEN_P(offset));
 -                              }
 -                              zend_hash_quick_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, &expr_ptr, sizeof(zval *), NULL);
 -                              break;
 -                      case IS_NULL:
 -                              zend_hash_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), "", sizeof(""), &expr_ptr, sizeof(zval *), NULL);
 -                              break;
 -                      default:
 -                              zend_error(E_WARNING, "Illegal offset type");
 -                              zval_ptr_dtor(&expr_ptr);
 -                              /* do nothing */
 -                              break;
 -              }
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_XOR_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -      } else {
 -              zend_hash_next_index_insert(Z_ARRVAL(EX_T(opline->result.var).tmp_var), &expr_ptr, sizeof(zval *), NULL);
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CV(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      if ((IS_VAR == IS_VAR || IS_VAR == IS_CV) && opline->extended_value) {
 -              if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_INIT_ARRAY_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_POW_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || (IS_CV != IS_UNUSED)
        USE_OPLINE
  
 -      array_init(&EX_T(opline->result.var).tmp_var);
 -      if (IS_VAR == IS_UNUSED) {
 -              ZEND_VM_NEXT_OPCODE();
 -#if 0 || IS_VAR != IS_UNUSED
 -      } else {
 -              return ZEND_ADD_ARRAY_ELEMENT_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -#endif
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_CV(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_UNSET_DIM_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_pre_incdec_property_helper_SPEC_UNUSED_CV(int inc ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op1;
 -      zval **container;
 -      zval *offset;
 -      ulong hval;
 +
 +      zval *object;
 +      zval *property;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -      if (IS_VAR == IS_CV && container != &EG(uninitialized_zval_ptr)) {
 -              SEPARATE_ZVAL_IF_NOT_REF(container);
 +      object = _get_obj_zval_ptr_unused(execute_data);
 +
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +
 +              HANDLE_EXCEPTION();
        }
 -      offset = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
  
 -      if (IS_VAR != IS_VAR || container) {
 -              switch (Z_TYPE_PP(container)) {
 -                      case IS_ARRAY: {
 -                              HashTable *ht = Z_ARRVAL_PP(container);
 +      property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
  
 -                              switch (Z_TYPE_P(offset)) {
 -                                      case IS_DOUBLE:
 -                                              hval = zend_dval_to_lval(Z_DVAL_P(offset));
 -                                              zend_hash_index_del(ht, hval);
 -                                              break;
 -                                      case IS_RESOURCE:
 -                                      case IS_BOOL:
 -                                      case IS_LONG:
 -                                              hval = Z_LVAL_P(offset);
 -                                              zend_hash_index_del(ht, hval);
 -                                              break;
 -                                      case IS_STRING:
 -                                              if (IS_CV == IS_CV || IS_CV == IS_VAR) {
 -                                                      Z_ADDREF_P(offset);
 -                                              }
 -                                              if (IS_CV == IS_CONST) {
 -                                                      hval = Z_HASH_P(offset);
 -                                              } else {
 -                                                      ZEND_HANDLE_NUMERIC_EX(Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, goto num_index_dim);
 -                                                      hval = str_hash(Z_STRVAL_P(offset), Z_STRLEN_P(offset));
 -                                              }
 -                                              if (ht == &EG(symbol_table)) {
 -                                                      zend_delete_global_variable_ex(offset->value.str.val, offset->value.str.len, hval TSRMLS_CC);
 -                                              } else {
 -                                                      zend_hash_quick_del(ht, Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval);
 -                                              }
 -                                              if (IS_CV == IS_CV || IS_CV == IS_VAR) {
 -                                                      zval_ptr_dtor(&offset);
 -                                              }
 -                                              break;
 -num_index_dim:
 -                                              zend_hash_index_del(ht, hval);
 -                                              if (IS_CV == IS_CV || IS_CV == IS_VAR) {
 -                                                      zval_ptr_dtor(&offset);
 -                                              }
 -                                              break;
 -                                      case IS_NULL:
 -                                              zend_hash_del(ht, "", sizeof(""));
 -                                              break;
 -                                      default:
 -                                              zend_error(E_WARNING, "Illegal offset type in unset");
 -                                              break;
 -                              }
 +      if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
 +
 +              HANDLE_EXCEPTION();
 +      }
  
 +      do {
 +              if (IS_UNUSED != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
                                break;
                        }
 -                      case IS_OBJECT:
 -                              if (UNEXPECTED(Z_OBJ_HT_P(*container)->unset_dimension == NULL)) {
 -                                      zend_error_noreturn(E_ERROR, "Cannot use object as array");
 -                              }
 -                              if (0) {
 -                                      MAKE_REAL_ZVAL_PTR(offset);
 +              }
 +
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
                                }
 -                              Z_OBJ_HT_P(*container)->unset_dimension(*container, offset TSRMLS_CC);
 -                              if (0) {
 -                                      zval_ptr_dtor(&offset);
 +                      } else {
-                               ZVAL_DEREF(zptr);
-                               SEPARATE_ZVAL_NOREF(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
                                } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      SEPARATE_ZVAL_NOREF(zptr);
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
+                               }
 -                              break;
 -                      case IS_STRING:
 -                              zend_error_noreturn(E_ERROR, "Cannot unset string offsets");
 -                              ZEND_VM_CONTINUE(); /* bailed out before */
 -                      default:
 -
 -                              break;
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 +                              }
-                       }
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 +                      }
 +              } else {
 +                      zend_pre_incdec_overloaded_property(object, property, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
                }
 -      } else {
 +      } while (0);
  
 -      }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
 +}
 +
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_INC_OBJ_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_UNUSED_CV(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_UNSET_OBJ_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_DEC_OBJ_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_UNUSED_CV(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +}
 +
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_post_incdec_property_helper_SPEC_UNUSED_CV(int inc ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op1;
 -      zval **container;
 -      zval *offset;
 +
 +      zval *object;
 +      zval *property;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      container = _get_zval_ptr_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -      offset = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
 +      object = _get_obj_zval_ptr_unused(execute_data);
  
 -      if (IS_VAR != IS_VAR || container) {
 -              if (IS_VAR == IS_CV && container != &EG(uninitialized_zval_ptr)) {
 -                      SEPARATE_ZVAL_IF_NOT_REF(container);
 -              }
 -              if (Z_TYPE_PP(container) == IS_OBJECT) {
 -                      if (0) {
 -                              MAKE_REAL_ZVAL_PTR(offset);
 -                      }
 -                      if (Z_OBJ_HT_P(*container)->unset_property) {
 -                              Z_OBJ_HT_P(*container)->unset_property(*container, offset, ((IS_CV == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      } else {
 -                              zend_error(E_NOTICE, "Trying to unset property of non-object");
 -                      }
 -                      if (0) {
 -                              zval_ptr_dtor(&offset);
 -                      } else {
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
  
 -                      }
 -              } else {
 +              HANDLE_EXCEPTION();
 +      }
  
 -              }
 -      } else {
 +      property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
  
 -      }
 -      if (free_op1.var) {zval_ptr_dtor_nogc(&free_op1.var);};
 +      if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +              HANDLE_EXCEPTION();
 +      }
  
 -static int ZEND_FASTCALL zend_isset_isempty_dim_prop_obj_handler_SPEC_VAR_CV(int prop_dim, ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op1;
 -      zval *container;
 -      zval **value = NULL;
 -      int result = 0;
 -      ulong hval;
 -      zval *offset;
 -
 -      SAVE_OPLINE();
 -      container = _get_zval_ptr_var(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
 -      offset = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
 -
 -      if (Z_TYPE_P(container) == IS_ARRAY && !prop_dim) {
 -              HashTable *ht;
 -              int isset = 0;
 -
 -              ht = Z_ARRVAL_P(container);
 -
 -              switch (Z_TYPE_P(offset)) {
 -                      case IS_DOUBLE:
 -                              hval = zend_dval_to_lval(Z_DVAL_P(offset));
 -                              goto num_index_prop;
 -                      case IS_RESOURCE:
 -                      case IS_BOOL:
 -                      case IS_LONG:
 -                              hval = Z_LVAL_P(offset);
 -num_index_prop:
 -                              if (zend_hash_index_find(ht, hval, (void **) &value) == SUCCESS) {
 -                                      isset = 1;
 -                              }
 -                              break;
 -                      case IS_STRING:
 -                              if (IS_CV == IS_CONST) {
 -                                      hval = Z_HASH_P(offset);
 -                              } else {
 -                                      ZEND_HANDLE_NUMERIC_EX(Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, goto num_index_prop);
 -                                      hval = str_hash(Z_STRVAL_P(offset), Z_STRLEN_P(offset));
 -                              }
 -                              if (zend_hash_quick_find(ht, Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, (void **) &value) == SUCCESS) {
 -                                      isset = 1;
 -                              }
 -                              break;
 -                      case IS_NULL:
 -                              if (zend_hash_find(ht, "", sizeof(""), (void **) &value) == SUCCESS) {
 -                                      isset = 1;
 -                              }
 -                              break;
 -                      default:
 -                              zend_error(E_WARNING, "Illegal offset type in isset or empty");
 +      do {
 +              if (IS_UNUSED != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
                                break;
 -              }
 -
 -              if (opline->extended_value & ZEND_ISSET) {
 -                      if (isset && Z_TYPE_PP(value) == IS_NULL) {
 -                              result = 0;
 -                      } else {
 -                              result = isset;
 -                      }
 -              } else /* if (opline->extended_value & ZEND_ISEMPTY) */ {
 -                      if (!isset || !i_zend_is_true(*value)) {
 -                              result = 0;
 -                      } else {
 -                              result = 1;
 -                      }
 -              }
 -
 -      } else if (Z_TYPE_P(container) == IS_OBJECT) {
 -              if (0) {
 -                      MAKE_REAL_ZVAL_PTR(offset);
 -              }
 -              if (prop_dim) {
 -                      if (Z_OBJ_HT_P(container)->has_property) {
 -                              result = Z_OBJ_HT_P(container)->has_property(container, offset, (opline->extended_value & ZEND_ISEMPTY) != 0, ((IS_CV == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      } else {
 -                              zend_error(E_NOTICE, "Trying to check property of non-object");
 -                              result = 0;
 -                      }
 -              } else {
 -                      if (Z_OBJ_HT_P(container)->has_dimension) {
 -                              result = Z_OBJ_HT_P(container)->has_dimension(container, offset, (opline->extended_value & ZEND_ISEMPTY) != 0 TSRMLS_CC);
 -                      } else {
 -                              zend_error(E_NOTICE, "Trying to check element of non-array");
 -                              result = 0;
                        }
                }
 -              if (0) {
 -                      zval_ptr_dtor(&offset);
 -              } else {
  
 -              }
 -      } else if (Z_TYPE_P(container) == IS_STRING && !prop_dim) { /* string offsets */
 -              zval tmp;
 +              /* here we are sure we are dealing with an object */
  
 -              if (Z_TYPE_P(offset) != IS_LONG) {
 -                      if (Z_TYPE_P(offset) <= IS_BOOL /* simple scalar types */
 -                                      || (Z_TYPE_P(offset) == IS_STRING /* or numeric string */
 -                                              && IS_LONG == is_numeric_string(Z_STRVAL_P(offset), Z_STRLEN_P(offset), NULL, NULL, 0))) {
 -                              ZVAL_COPY_VALUE(&tmp, offset);
 -                              zval_copy_ctor(&tmp);
 -                              convert_to_long(&tmp);
 -                              offset = &tmp;
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
-                               }
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              ZVAL_NULL(EX_VAR(opline->result.var));
                        } else {
-                               ZVAL_DEREF(zptr);
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               zval_opt_copy_ctor(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
 -                              /* can not be converted to proper offset, return "not set" */
 -                              result = 0;
 -                      }
 -              }
 -              if (Z_TYPE_P(offset) == IS_LONG) {
 -                      if (opline->extended_value & ZEND_ISSET) {
 -                              if (offset->value.lval >= 0 && offset->value.lval < Z_STRLEN_P(container)) {
 -                                      result = 1;
 -                              }
 -                      } else /* if (opline->extended_value & ZEND_ISEMPTY) */ {
 -                              if (offset->value.lval >= 0 && offset->value.lval < Z_STRLEN_P(container) && Z_STRVAL_P(container)[offset->value.lval] != '0') {
 -                                      result = 1;
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      zval_opt_copy_ctor(zptr);
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
                                }
                        }
 +              } else {
 +                      zend_post_incdec_overloaded_property(object, property, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, EX_VAR(opline->result.var));
                }
 +      } while (0);
  
 -      } else {
 -
 -      }
 -
 -      Z_TYPE(EX_T(opline->result.var).tmp_var) = IS_BOOL;
 -      if (opline->extended_value & ZEND_ISSET) {
 -              Z_LVAL(EX_T(opline->result.var).tmp_var) = result;
 -      } else {
 -              Z_LVAL(EX_T(opline->result.var).tmp_var) = !result;
 -      }
 -
 -      zval_ptr_dtor_nogc(&free_op1.var);
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_ISSET_ISEMPTY_DIM_OBJ_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_INC_OBJ_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_isset_isempty_dim_prop_obj_handler_SPEC_VAR_CV(0, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_UNUSED_CV(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_ISSET_ISEMPTY_PROP_OBJ_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_DEC_OBJ_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_isset_isempty_dim_prop_obj_handler_SPEC_VAR_CV(1, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_UNUSED_CV(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_YIELD_SPEC_VAR_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_OBJ_R_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
  
@@@ -26654,1118 -25396,1182 +26714,1130 @@@ static ZEND_OPCODE_HANDLER_RET ZEND_FAS
  {
        USE_OPLINE
  
 -      zval *container;
 -
 -      zval *offset;
 +      zend_generator *generator = zend_get_running_generator(execute_data);
  
        SAVE_OPLINE();
 -      container = _get_obj_zval_ptr_unused(TSRMLS_C);
 -      offset  = opline->op2.zv;
 +      if (UNEXPECTED(generator->flags & ZEND_GENERATOR_FORCED_CLOSE)) {
 +              zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
  
 -      if (UNEXPECTED(Z_TYPE_P(container) != IS_OBJECT) ||
 -          UNEXPECTED(Z_OBJ_HT_P(container)->read_property == NULL)) {
 -              PZVAL_LOCK(&EG(uninitialized_zval));
 -              EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
  
 -      } else {
 -              zval *retval;
 +              HANDLE_EXCEPTION();
 +      }
  
 -              if (0) {
 -                      MAKE_REAL_ZVAL_PTR(offset);
 -              }
 +      /* Destroy the previously yielded value */
 +      zval_ptr_dtor(&generator->value);
  
 -              /* here we are sure we are dealing with an object */
 -              retval = Z_OBJ_HT_P(container)->read_property(container, offset, BP_VAR_IS, ((IS_CONST == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 +      /* Destroy the previously yielded key */
 +      zval_ptr_dtor(&generator->key);
  
 -              PZVAL_LOCK(retval);
 -              EX_T(opline->result.var).var.ptr = retval;
 +      /* Set the new yielded value */
 +      if (IS_UNUSED != IS_UNUSED) {
  
 -              if (0) {
 -                      zval_ptr_dtor(&offset);
 -              } else {
  
 -              }
 -      }
 +              if (UNEXPECTED(EX(func)->op_array.fn_flags & ZEND_ACC_RETURN_REFERENCE)) {
 +                      /* Constants and temporary variables aren't yieldable by reference,
 +                       * but we still allow them with a notice. */
 +                      if (IS_UNUSED == IS_CONST || IS_UNUSED == IS_TMP_VAR) {
 +                              zval *value;
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +                              zend_error(E_NOTICE, "Only variable references should be yielded by reference");
  
 -static int ZEND_FASTCALL  ZEND_FETCH_OBJ_FUNC_ARG_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 +                              value = NULL;
 +                              ZVAL_COPY_VALUE(&generator->value, value);
 +                              if (IS_UNUSED == IS_CONST) {
 +                                      if (UNEXPECTED(Z_OPT_COPYABLE(generator->value))) {
 +                                              zval_copy_ctor_func(&generator->value);
 +                                      }
 +                              }
 +                      } else {
 +                              zval *value_ptr = NULL;
  
 -      if (zend_is_by_ref_func_arg_fetch(opline, EX(call) TSRMLS_CC)) {
 -              /* Behave like FETCH_OBJ_W */
 -              zend_free_op free_op1;
 -              zval *property;
 -              zval **container;
 +                              if (IS_UNUSED == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
 +                                      zend_throw_error(NULL, "Cannot yield string offsets by reference");
  
 -              SAVE_OPLINE();
 -              property = opline->op2.zv;
 -              container = _get_obj_zval_ptr_ptr_unused(TSRMLS_C);
 +                                      HANDLE_EXCEPTION();
 +                              }
  
 -              if (0) {
 -                      MAKE_REAL_ZVAL_PTR(property);
 -              }
 -              if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
 -                      zend_error_noreturn(E_ERROR, "Cannot use string offset as an object");
 -              }
 -              zend_fetch_property_address(&EX_T(opline->result.var), container, property, ((IS_CONST == IS_CONST) ? opline->op2.literal : NULL), BP_VAR_W TSRMLS_CC);
 -              if (0) {
 -                      zval_ptr_dtor(&property);
 +                              /* If a function call result is yielded and the function did
 +                               * not return by reference we throw a notice. */
 +                              if (IS_UNUSED == IS_VAR &&
 +                                  (value_ptr == &EG(uninitialized_zval) ||
 +                                   (opline->extended_value == ZEND_RETURNS_FUNCTION &&
 +                                    !(Z_VAR_FLAGS_P(value_ptr) & IS_VAR_RET_REF)))) {
 +                                      zend_error(E_NOTICE, "Only variable references should be yielded by reference");
 +                              } else {
 +                                      ZVAL_MAKE_REF(value_ptr);
 +                              }
 +                              ZVAL_COPY(&generator->value, value_ptr);
 +
 +                      }
                } else {
 +                      zval *value = NULL;
  
 -              }
 -              if (IS_UNUSED == IS_VAR && 0 && READY_TO_DESTROY(free_op1.var)) {
 -                      EXTRACT_ZVAL_PTR(&EX_T(opline->result.var));
 -              }
 +                      /* Consts, temporary variables and references need copying */
 +                      if (IS_UNUSED == IS_CONST) {
 +                              ZVAL_COPY_VALUE(&generator->value, value);
 +                              if (UNEXPECTED(Z_OPT_COPYABLE(generator->value))) {
 +                                      zval_copy_ctor_func(&generator->value);
 +                              }
 +                      } else if (IS_UNUSED == IS_TMP_VAR) {
 +                              ZVAL_COPY_VALUE(&generator->value, value);
 +            } else if ((IS_UNUSED & (IS_VAR|IS_CV)) && Z_ISREF_P(value)) {
 +                              ZVAL_COPY(&generator->value, Z_REFVAL_P(value));
  
 -              CHECK_EXCEPTION();
 -              ZEND_VM_NEXT_OPCODE();
 +                      } else {
 +                              ZVAL_COPY_VALUE(&generator->value, value);
 +                              if (IS_UNUSED == IS_CV) {
 +                                      if (Z_OPT_REFCOUNTED_P(value)) Z_ADDREF_P(value);
 +                              }
 +                      }
 +              }
        } else {
 -              return zend_fetch_property_address_read_helper_SPEC_UNUSED_CONST(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +              /* If no value was specified yield null */
 +              ZVAL_NULL(&generator->value);
        }
 -}
  
 -static int ZEND_FASTCALL  ZEND_FETCH_OBJ_UNSET_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op1, free_res;
 -      zval **container;
 -      zval *property;
 +      /* Set the new yielded key */
 +      if (IS_CV != IS_UNUSED) {
  
 -      SAVE_OPLINE();
 -      container = _get_obj_zval_ptr_ptr_unused(TSRMLS_C);
 -      property = opline->op2.zv;
 +              zval *key = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
 +
 +              /* Consts, temporary variables and references need copying */
 +              if (IS_CV == IS_CONST) {
 +                      ZVAL_COPY_VALUE(&generator->key, key);
 +                      if (UNEXPECTED(Z_OPT_COPYABLE(generator->key))) {
 +                              zval_copy_ctor_func(&generator->key);
 +                      }
 +              } else if (IS_CV == IS_TMP_VAR) {
 +                      ZVAL_COPY_VALUE(&generator->key, key);
 +              } else if ((IS_CV & (IS_VAR|IS_CV)) && Z_ISREF_P(key)) {
 +                      ZVAL_COPY(&generator->key, Z_REFVAL_P(key));
  
 -      if (IS_UNUSED == IS_CV) {
 -              if (container != &EG(uninitialized_zval_ptr)) {
 -                      SEPARATE_ZVAL_IF_NOT_REF(container);
 +              } else {
 +                      ZVAL_COPY_VALUE(&generator->key, key);
 +                      if (IS_CV == IS_CV) {
 +                              if (Z_OPT_REFCOUNTED_P(key)) Z_ADDREF_P(key);
 +                      }
                }
 -      }
 -      if (0) {
 -              MAKE_REAL_ZVAL_PTR(property);
 -      }
 -      if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an object");
 -      }
 -      zend_fetch_property_address(&EX_T(opline->result.var), container, property, ((IS_CONST == IS_CONST) ? opline->op2.literal : NULL), BP_VAR_UNSET TSRMLS_CC);
 -      if (0) {
 -              zval_ptr_dtor(&property);
 -      } else {
  
 -      }
 -      if (IS_UNUSED == IS_VAR && 0 && READY_TO_DESTROY(free_op1.var)) {
 -              EXTRACT_ZVAL_PTR(&EX_T(opline->result.var));
 +              if (Z_TYPE(generator->key) == IS_LONG
 +                  && Z_LVAL(generator->key) > generator->largest_used_integer_key
 +              ) {
 +                      generator->largest_used_integer_key = Z_LVAL(generator->key);
 +              }
 +      } else {
 +              /* If no key was specified we use auto-increment keys */
 +              generator->largest_used_integer_key++;
 +              ZVAL_LONG(&generator->key, generator->largest_used_integer_key);
        }
  
 -      PZVAL_UNLOCK(*EX_T(opline->result.var).var.ptr_ptr, &free_res);
 -      if (EX_T(opline->result.var).var.ptr_ptr != &EG(uninitialized_zval_ptr)) {
 -              SEPARATE_ZVAL_IF_NOT_REF(EX_T(opline->result.var).var.ptr_ptr);
 +      if (RETURN_VALUE_USED(opline)) {
 +              /* If the return value of yield is used set the send
 +               * target and initialize it to NULL */
 +              generator->send_target = EX_VAR(opline->result.var);
 +              ZVAL_NULL(generator->send_target);
 +      } else {
 +              generator->send_target = NULL;
        }
 -      PZVAL_LOCK(*EX_T(opline->result.var).var.ptr_ptr);
 -      FREE_OP_VAR_PTR(free_res);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 -
 -static int ZEND_FASTCALL  ZEND_ASSIGN_OBJ_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
  
 -      zval **object_ptr;
 -      zval *property_name;
 +      /* We increment to the next op, so we are at the correct position when the
 +       * generator is resumed. */
 +      ZEND_VM_INC_OPCODE();
  
 +      /* The GOTO VM uses a local opline variable. We need to set the opline
 +       * variable in execute_data so we don't resume at an old position. */
        SAVE_OPLINE();
 -      object_ptr = _get_obj_zval_ptr_ptr_unused(TSRMLS_C);
 -      property_name = opline->op2.zv;
 -
 -      if (0) {
 -              MAKE_REAL_ZVAL_PTR(property_name);
 -      }
 -      if (IS_UNUSED == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
 -      }
 -      zend_assign_to_object(RETURN_VALUE_USED(opline)?&EX_T(opline->result.var).var.ptr:NULL, object_ptr, property_name, (opline+1)->op1_type, &(opline+1)->op1, execute_data, ZEND_ASSIGN_OBJ, ((IS_CONST == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -      if (0) {
 -              zval_ptr_dtor(&property_name);
 -      } else {
 -
 -      }
  
 -      /* assign_obj has two opcodes! */
 -      CHECK_EXCEPTION();
 -      ZEND_VM_INC_OPCODE();
 -      ZEND_VM_NEXT_OPCODE();
 +      ZEND_VM_RETURN();
  }
  
 -static int ZEND_FASTCALL  ZEND_ADD_CHAR_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMPVAR(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zval *str = &EX_T(opline->result.var).tmp_var;
 +      zend_free_op free_op2, free_op_data1;
 +      zval *object;
 +      zval *property;
 +      zval *value;
 +      zval *zptr;
  
        SAVE_OPLINE();
 +      object = _get_obj_zval_ptr_unused(execute_data);
  
 -      if (IS_UNUSED == IS_UNUSED) {
 -              /* Initialize for erealloc in add_char_to_string */
 -              Z_STRVAL_P(str) = NULL;
 -              Z_STRLEN_P(str) = 0;
 -              Z_TYPE_P(str) = IS_STRING;
 -
 -              INIT_PZVAL(str);
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
        }
  
 -      add_char_to_string(str, str, opline->op2.zv);
 +      property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
  
 -      /* FREE_OP is missing intentionally here - we're always working on the same temporary variable */
 -      /*CHECK_EXCEPTION();*/
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +      if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an object");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
 +      }
  
 -static int ZEND_FASTCALL  ZEND_ADD_STRING_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zval *str = &EX_T(opline->result.var).tmp_var;
 +      do {
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
  
 -      SAVE_OPLINE();
 +              if (IS_UNUSED != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to assign property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
 +                              break;
 +                      }
 +              }
  
 -      if (IS_UNUSED == IS_UNUSED) {
 -              /* Initialize for erealloc in add_string_to_string */
 -              Z_STRVAL_P(str) = NULL;
 -              Z_STRLEN_P(str) = 0;
 -              Z_TYPE_P(str) = IS_STRING;
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
++                              }
++                      } else {
++                              ZVAL_DEREF(zptr);
++                              SEPARATE_ZVAL_NOREF(zptr);
  
-                       ZVAL_DEREF(zptr);
-                       SEPARATE_ZVAL_NOREF(zptr);
-                       binary_op(zptr, zptr, value);
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 -              INIT_PZVAL(str);
 -      }
++                              binary_op(zptr, zptr, value);
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
++                              }
 +                      }
 +              } else {
 +                      zend_assign_op_overloaded_property(object, property, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), value, binary_op, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
 +              }
 +      } while (0);
  
 -      add_string_to_string(str, str, opline->op2.zv);
 +      FREE_OP(free_op_data1);
 +      zval_ptr_dtor_nogc(free_op2);
  
 -      /* FREE_OP is missing intentionally here - we're always working on the same temporary variable */
 -      /*CHECK_EXCEPTION();*/
 -      ZEND_VM_NEXT_OPCODE();
 +      /* assign_obj has two opcodes! */
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
  }
  
 -static int ZEND_FASTCALL  ZEND_INIT_METHOD_CALL_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zval *function_name;
 -      char *function_name_strval;
 -      int function_name_strlen;
 -
 -      call_slot *call = EX(call_slots) + opline->result.num;
 +      zend_free_op free_op2, free_op_data1;
 +      zval *var_ptr, rv;
 +      zval *value, *container, *dim;
  
        SAVE_OPLINE();
 +      container = _get_obj_zval_ptr_unused(execute_data);
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
 +      }
 +      if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an array");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
 +      }
  
 -      function_name = opline->op2.zv;
 +      dim = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
  
 -      if (IS_CONST != IS_CONST &&
 -          UNEXPECTED(Z_TYPE_P(function_name) != IS_STRING)) {
 -              if (UNEXPECTED(EG(exception) != NULL)) {
 -                      HANDLE_EXCEPTION();
 +      do {
 +              if (IS_UNUSED == IS_UNUSED || UNEXPECTED(Z_TYPE_P(container) != IS_ARRAY)) {
 +                      if (IS_UNUSED != IS_UNUSED) {
 +                              ZVAL_DEREF(container);
 +                      }
 +                      if (IS_UNUSED == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
 +                              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +                              zend_binary_assign_op_obj_dim(container, dim, value, UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL, binary_op);
 +                              break;
 +                      }
                }
 -              zend_error_noreturn(E_ERROR, "Method name must be a string");
 -      }
 -
 -      function_name_strval = Z_STRVAL_P(function_name);
 -      function_name_strlen = Z_STRLEN_P(function_name);
  
 -      call->object = _get_obj_zval_ptr_unused(TSRMLS_C);
 +              zend_fetch_dimension_address_RW(&rv, container, dim, (IS_TMP_VAR|IS_VAR));
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +              ZEND_ASSERT(Z_TYPE(rv) == IS_INDIRECT);
 +              var_ptr = Z_INDIRECT(rv);
  
 -      if (EXPECTED(call->object != NULL) &&
 -          EXPECTED(Z_TYPE_P(call->object) == IS_OBJECT)) {
 -              call->called_scope = Z_OBJCE_P(call->object);
 +              if (UNEXPECTED(var_ptr == NULL)) {
 +                      zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
 +                      zval_ptr_dtor_nogc(free_op2);
 +                      FREE_OP(free_op_data1);
  
 -              if (IS_CONST != IS_CONST ||
 -                  (call->fbc = CACHED_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, call->called_scope)) == NULL) {
 -                  zval *object = call->object;
 +                      HANDLE_EXCEPTION();
 +              }
  
 -                      if (UNEXPECTED(Z_OBJ_HT_P(call->object)->get_method == NULL)) {
 -                              zend_error_noreturn(E_ERROR, "Object does not support method calls");
 +              if (UNEXPECTED(var_ptr == &EG(error_zval))) {
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
                        }
 +              } else {
 +                      ZVAL_DEREF(var_ptr);
 +                      SEPARATE_ZVAL_NOREF(var_ptr);
  
 -                      /* First, locate the function. */
 -                      call->fbc = Z_OBJ_HT_P(call->object)->get_method(&call->object, function_name_strval, function_name_strlen, ((IS_CONST == IS_CONST) ? (opline->op2.literal + 1) : NULL) TSRMLS_CC);
 -                      if (UNEXPECTED(call->fbc == NULL)) {
 -                              zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", Z_OBJ_CLASS_NAME_P(call->object), function_name_strval);
 -                      }
 -                      if (IS_CONST == IS_CONST &&
 -                          EXPECTED(call->fbc->type <= ZEND_USER_FUNCTION) &&
 -                          EXPECTED((call->fbc->common.fn_flags & (ZEND_ACC_CALL_VIA_HANDLER|ZEND_ACC_NEVER_CACHE)) == 0) &&
 -                          EXPECTED(call->object == object)) {
 -                              CACHE_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, call->called_scope, call->fbc);
 +                      binary_op(var_ptr, var_ptr, value);
 +
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_COPY(EX_VAR(opline->result.var), var_ptr);
                        }
                }
 -      } else {
 -              if (UNEXPECTED(EG(exception) != NULL)) {
 +      } while (0);
  
 -                      HANDLE_EXCEPTION();
 -              }
 -              zend_error_noreturn(E_ERROR, "Call to a member function %s() on %s", function_name_strval, zend_get_type_by_const(Z_TYPE_P(call->object)));
 -      }
 +      zval_ptr_dtor_nogc(free_op2);
 +      FREE_OP(free_op_data1);
  
 -      if ((call->fbc->common.fn_flags & ZEND_ACC_STATIC) != 0) {
 -              call->object = NULL;
 -      } else {
 -              if (!PZVAL_IS_REF(call->object)) {
 -                      Z_ADDREF_P(call->object); /* For $this pointer */
 -              } else {
 -                      zval *this_ptr;
 -                      ALLOC_ZVAL(this_ptr);
 -                      INIT_PZVAL_COPY(this_ptr, call->object);
 -                      zval_copy_ctor(this_ptr);
 -                      call->object = this_ptr;
 -              }
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
 +}
 +
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_ADD_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_TMPVAR(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMPVAR(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      call->num_additional_args = 0;
 -      call->is_ctor_call = 0;
 -      EX(call) = call;
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SUB_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_TMPVAR(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMPVAR(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_MUL_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_TMPVAR(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMPVAR(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_CONSTANT_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_DIV_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
        USE_OPLINE
  
 -      SAVE_OPLINE();
 -      if (IS_UNUSED == IS_UNUSED) {
 -              zend_constant *c;
 -              zval *retval;
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_TMPVAR(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMPVAR(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -              if (CACHED_PTR(opline->op2.literal->cache_slot)) {
 -                      c = CACHED_PTR(opline->op2.literal->cache_slot);
 -              } else if ((c = zend_quick_get_constant(opline->op2.literal + 1, opline->extended_value TSRMLS_CC)) == NULL) {
 -                      if ((opline->extended_value & IS_CONSTANT_UNQUALIFIED) != 0) {
 -                              char *actual = (char *)zend_memrchr(Z_STRVAL_P(opline->op2.zv), '\\', Z_STRLEN_P(opline->op2.zv));
 -                              if(!actual) {
 -                                      actual = Z_STRVAL_P(opline->op2.zv);
 -                              } else {
 -                                      actual++;
 -                              }
 -                              /* non-qualified constant - allow text substitution */
 -                              zend_error(E_NOTICE, "Use of undefined constant %s - assumed '%s'", actual, actual);
 -                              ZVAL_STRINGL(&EX_T(opline->result.var).tmp_var, actual, Z_STRLEN_P(opline->op2.zv)-(actual - Z_STRVAL_P(opline->op2.zv)), 1);
 -                              CHECK_EXCEPTION();
 -                              ZEND_VM_NEXT_OPCODE();
 -                      } else {
 -                              zend_error_noreturn(E_ERROR, "Undefined constant '%s'", Z_STRVAL_P(opline->op2.zv));
 -                      }
 -              } else {
 -                      CACHE_PTR(opline->op2.literal->cache_slot, c);
 -              }
 -              retval = &EX_T(opline->result.var).tmp_var;
 -              ZVAL_COPY_VALUE(retval, &c->value);
 -              zval_copy_ctor(retval);
 -      } else {
 -              /* class constant */
 -              zend_class_entry *ce;
 -              zval **value;
 -
 -              if (IS_UNUSED == IS_CONST) {
 -                      if (CACHED_PTR(opline->op2.literal->cache_slot)) {
 -                              value = CACHED_PTR(opline->op2.literal->cache_slot);
 -                              ZVAL_COPY_VALUE(&EX_T(opline->result.var).tmp_var, *value);
 -                              zval_copy_ctor(&EX_T(opline->result.var).tmp_var);
 -                              goto constant_fetch_end;
 -                      } else if (CACHED_PTR(opline->op1.literal->cache_slot)) {
 -                              ce = CACHED_PTR(opline->op1.literal->cache_slot);
 -                      } else {
 -                              ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), opline->op1.literal + 1, opline->extended_value TSRMLS_CC);
 -                              if (UNEXPECTED(EG(exception) != NULL)) {
 -                                      HANDLE_EXCEPTION();
 -                              }
 -                              if (UNEXPECTED(ce == NULL)) {
 -                                      zend_error_noreturn(E_ERROR, "Class '%s' not found", Z_STRVAL_P(opline->op1.zv));
 -                              }
 -                              CACHE_PTR(opline->op1.literal->cache_slot, ce);
 -                      }
 -              } else {
 -                      ce = EX_T(opline->op1.var).class_entry;
 -                      if ((value = CACHED_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce)) != NULL) {
 -                              ZVAL_COPY_VALUE(&EX_T(opline->result.var).tmp_var, *value);
 -                              zval_copy_ctor(&EX_T(opline->result.var).tmp_var);
 -                              goto constant_fetch_end;
 -                      }
 -              }
 -
 -              if (EXPECTED(zend_hash_quick_find(&ce->constants_table, Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv)+1, Z_HASH_P(opline->op2.zv), (void **) &value) == SUCCESS)) {
 -                      if (IS_CONSTANT_TYPE(Z_TYPE_PP(value))) {
 -                              zend_class_entry *old_scope = EG(scope);
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_MOD_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
  
 -                              EG(scope) = ce;
 -                              zval_update_constant(value, 1 TSRMLS_CC);
 -                              EG(scope) = old_scope;
 -                      }
 -                      if (IS_UNUSED == IS_CONST) {
 -                              CACHE_PTR(opline->op2.literal->cache_slot, value);
 -                      } else {
 -                              CACHE_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce, value);
 -                      }
 -                      ZVAL_COPY_VALUE(&EX_T(opline->result.var).tmp_var, *value);
 -                      zval_copy_ctor(&EX_T(opline->result.var).tmp_var);
 -              } else if (Z_STRLEN_P(opline->op2.zv) == sizeof("class")-1 && memcmp(Z_STRVAL_P(opline->op2.zv), "class", sizeof("class") - 1) == 0) {
 -                      /* "class" is assigned as a case-sensitive keyword from zend_do_resolve_class_name */
 -                      ZVAL_STRINGL(&EX_T(opline->result.var).tmp_var, ce->name, ce->name_length, 1);
 -              } else {
 -                      zend_error_noreturn(E_ERROR, "Undefined class constant '%s'", Z_STRVAL_P(opline->op2.zv));
 -              }
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_TMPVAR(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -constant_fetch_end:
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMPVAR(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_INIT_ARRAY_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SL_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
        USE_OPLINE
  
 -      array_init(&EX_T(opline->result.var).tmp_var);
 -      if (IS_UNUSED == IS_UNUSED) {
 -              ZEND_VM_NEXT_OPCODE();
 -#if 0 || IS_UNUSED != IS_UNUSED
 -      } else {
 -              return ZEND_ADD_ARRAY_ELEMENT_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -#endif
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_TMPVAR(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMPVAR(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_UNSET_DIM_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SR_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
        USE_OPLINE
  
 -      zval **container;
 -      zval *offset;
 -      ulong hval;
 -
 -      SAVE_OPLINE();
 -      container = _get_obj_zval_ptr_ptr_unused(TSRMLS_C);
 -      if (IS_UNUSED == IS_CV && container != &EG(uninitialized_zval_ptr)) {
 -              SEPARATE_ZVAL_IF_NOT_REF(container);
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_TMPVAR(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      offset = opline->op2.zv;
 -
 -      if (IS_UNUSED != IS_VAR || container) {
 -              switch (Z_TYPE_PP(container)) {
 -                      case IS_ARRAY: {
 -                              HashTable *ht = Z_ARRVAL_PP(container);
 -
 -                              switch (Z_TYPE_P(offset)) {
 -                                      case IS_DOUBLE:
 -                                              hval = zend_dval_to_lval(Z_DVAL_P(offset));
 -                                              zend_hash_index_del(ht, hval);
 -                                              break;
 -                                      case IS_RESOURCE:
 -                                      case IS_BOOL:
 -                                      case IS_LONG:
 -                                              hval = Z_LVAL_P(offset);
 -                                              zend_hash_index_del(ht, hval);
 -                                              break;
 -                                      case IS_STRING:
 -                                              if (IS_CONST == IS_CV || IS_CONST == IS_VAR) {
 -                                                      Z_ADDREF_P(offset);
 -                                              }
 -                                              if (IS_CONST == IS_CONST) {
 -                                                      hval = Z_HASH_P(offset);
 -                                              } else {
 -                                                      ZEND_HANDLE_NUMERIC_EX(Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, goto num_index_dim);
 -                                                      hval = str_hash(Z_STRVAL_P(offset), Z_STRLEN_P(offset));
 -                                              }
 -                                              if (ht == &EG(symbol_table)) {
 -                                                      zend_delete_global_variable_ex(offset->value.str.val, offset->value.str.len, hval TSRMLS_CC);
 -                                              } else {
 -                                                      zend_hash_quick_del(ht, Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval);
 -                                              }
 -                                              if (IS_CONST == IS_CV || IS_CONST == IS_VAR) {
 -                                                      zval_ptr_dtor(&offset);
 -                                              }
 -                                              break;
 -num_index_dim:
 -                                              zend_hash_index_del(ht, hval);
 -                                              if (IS_CONST == IS_CV || IS_CONST == IS_VAR) {
 -                                                      zval_ptr_dtor(&offset);
 -                                              }
 -                                              break;
 -                                      case IS_NULL:
 -                                              zend_hash_del(ht, "", sizeof(""));
 -                                              break;
 -                                      default:
 -                                              zend_error(E_WARNING, "Illegal offset type in unset");
 -                                              break;
 -                              }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMPVAR(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -                              break;
 -                      }
 -                      case IS_OBJECT:
 -                              if (UNEXPECTED(Z_OBJ_HT_P(*container)->unset_dimension == NULL)) {
 -                                      zend_error_noreturn(E_ERROR, "Cannot use object as array");
 -                              }
 -                              if (0) {
 -                                      MAKE_REAL_ZVAL_PTR(offset);
 -                              }
 -                              Z_OBJ_HT_P(*container)->unset_dimension(*container, offset TSRMLS_CC);
 -                              if (0) {
 -                                      zval_ptr_dtor(&offset);
 -                              } else {
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_CONCAT_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
  
 -                              }
 -                              break;
 -                      case IS_STRING:
 -                              zend_error_noreturn(E_ERROR, "Cannot unset string offsets");
 -                              ZEND_VM_CONTINUE(); /* bailed out before */
 -                      default:
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_TMPVAR(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMPVAR(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -                              break;
 -              }
 -      } else {
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_OR_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
  
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_TMPVAR(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMPVAR(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_UNSET_OBJ_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_AND_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
        USE_OPLINE
  
 -      zval **container;
 -      zval *offset;
 -
 -      SAVE_OPLINE();
 -      container = _get_obj_zval_ptr_ptr_unused(TSRMLS_C);
 -      offset = opline->op2.zv;
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_TMPVAR(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMPVAR(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      if (IS_UNUSED != IS_VAR || container) {
 -              if (IS_UNUSED == IS_CV && container != &EG(uninitialized_zval_ptr)) {
 -                      SEPARATE_ZVAL_IF_NOT_REF(container);
 -              }
 -              if (Z_TYPE_PP(container) == IS_OBJECT) {
 -                      if (0) {
 -                              MAKE_REAL_ZVAL_PTR(offset);
 -                      }
 -                      if (Z_OBJ_HT_P(*container)->unset_property) {
 -                              Z_OBJ_HT_P(*container)->unset_property(*container, offset, ((IS_CONST == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      } else {
 -                              zend_error(E_NOTICE, "Trying to unset property of non-object");
 -                      }
 -                      if (0) {
 -                              zval_ptr_dtor(&offset);
 -                      } else {
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_XOR_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
  
 -                      }
 -              } else {
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_TMPVAR(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMPVAR(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -              }
 -      } else {
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_POW_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
  
 +# if 0 || (IS_UNUSED != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_UNUSED_TMPVAR(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMPVAR(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL zend_isset_isempty_dim_prop_obj_handler_SPEC_UNUSED_CONST(int prop_dim, ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_pre_incdec_property_helper_SPEC_UNUSED_TMPVAR(int inc ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -
 -      zval *container;
 -      zval **value = NULL;
 -      int result = 0;
 -      ulong hval;
 -      zval *offset;
 +      zend_free_op free_op2;
 +      zval *object;
 +      zval *property;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      container = _get_obj_zval_ptr_unused(TSRMLS_C);
 -      offset = opline->op2.zv;
 +      object = _get_obj_zval_ptr_unused(execute_data);
  
 -      if (Z_TYPE_P(container) == IS_ARRAY && !prop_dim) {
 -              HashTable *ht;
 -              int isset = 0;
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
 +      }
  
 -              ht = Z_ARRVAL_P(container);
 +      property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
  
 -              switch (Z_TYPE_P(offset)) {
 -                      case IS_DOUBLE:
 -                              hval = zend_dval_to_lval(Z_DVAL_P(offset));
 -                              goto num_index_prop;
 -                      case IS_RESOURCE:
 -                      case IS_BOOL:
 -                      case IS_LONG:
 -                              hval = Z_LVAL_P(offset);
 -num_index_prop:
 -                              if (zend_hash_index_find(ht, hval, (void **) &value) == SUCCESS) {
 -                                      isset = 1;
 -                              }
 -                              break;
 -                      case IS_STRING:
 -                              if (IS_CONST == IS_CONST) {
 -                                      hval = Z_HASH_P(offset);
 -                              } else {
 -                                      ZEND_HANDLE_NUMERIC_EX(Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, goto num_index_prop);
 -                                      hval = str_hash(Z_STRVAL_P(offset), Z_STRLEN_P(offset));
 -                              }
 -                              if (zend_hash_quick_find(ht, Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, (void **) &value) == SUCCESS) {
 -                                      isset = 1;
 -                              }
 -                              break;
 -                      case IS_NULL:
 -                              if (zend_hash_find(ht, "", sizeof(""), (void **) &value) == SUCCESS) {
 -                                      isset = 1;
 +      if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
 +      }
 +
 +      do {
 +              if (IS_UNUSED != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
                                }
                                break;
 -                      default:
 -                              zend_error(E_WARNING, "Illegal offset type in isset or empty");
 -                              break;
 -              }
 -
 -              if (opline->extended_value & ZEND_ISSET) {
 -                      if (isset && Z_TYPE_PP(value) == IS_NULL) {
 -                              result = 0;
 -                      } else {
 -                              result = isset;
 -                      }
 -              } else /* if (opline->extended_value & ZEND_ISEMPTY) */ {
 -                      if (!isset || !i_zend_is_true(*value)) {
 -                              result = 0;
 -                      } else {
 -                              result = 1;
                        }
                }
  
 -      } else if (Z_TYPE_P(container) == IS_OBJECT) {
 -              if (0) {
 -                      MAKE_REAL_ZVAL_PTR(offset);
 -              }
 -              if (prop_dim) {
 -                      if (Z_OBJ_HT_P(container)->has_property) {
 -                              result = Z_OBJ_HT_P(container)->has_property(container, offset, (opline->extended_value & ZEND_ISEMPTY) != 0, ((IS_CONST == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      } else {
 -                              zend_error(E_NOTICE, "Trying to check property of non-object");
 -                              result = 0;
 -                      }
 -              } else {
 -                      if (Z_OBJ_HT_P(container)->has_dimension) {
 -                              result = Z_OBJ_HT_P(container)->has_dimension(container, offset, (opline->extended_value & ZEND_ISEMPTY) != 0 TSRMLS_CC);
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
                        } else {
-                               ZVAL_DEREF(zptr);
-                               SEPARATE_ZVAL_NOREF(zptr);
 -                              zend_error(E_NOTICE, "Trying to check element of non-array");
 -                              result = 0;
 -                      }
 -              }
 -              if (0) {
 -                      zval_ptr_dtor(&offset);
 -              } else {
--
-                               if (inc) {
-                                       increment_function(zptr);
 -              }
 -      } else if (Z_TYPE_P(container) == IS_STRING && !prop_dim) { /* string offsets */
 -              zval tmp;
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      SEPARATE_ZVAL_NOREF(zptr);
 -              if (Z_TYPE_P(offset) != IS_LONG) {
 -                      if (Z_TYPE_P(offset) <= IS_BOOL /* simple scalar types */
 -                                      || (Z_TYPE_P(offset) == IS_STRING /* or numeric string */
 -                                              && IS_LONG == is_numeric_string(Z_STRVAL_P(offset), Z_STRLEN_P(offset), NULL, NULL, 0))) {
 -                              ZVAL_COPY_VALUE(&tmp, offset);
 -                              zval_copy_ctor(&tmp);
 -                              convert_to_long(&tmp);
 -                              offset = &tmp;
 -                      } else {
 -                              /* can not be converted to proper offset, return "not set" */
 -                              result = 0;
 -                      }
 -              }
 -              if (Z_TYPE_P(offset) == IS_LONG) {
 -                      if (opline->extended_value & ZEND_ISSET) {
 -                              if (offset->value.lval >= 0 && offset->value.lval < Z_STRLEN_P(container)) {
 -                                      result = 1;
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
+                               }
 -                      } else /* if (opline->extended_value & ZEND_ISEMPTY) */ {
 -                              if (offset->value.lval >= 0 && offset->value.lval < Z_STRLEN_P(container) && Z_STRVAL_P(container)[offset->value.lval] != '0') {
 -                                      result = 1;
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
                                }
-                       }
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
                        }
 +              } else {
 +                      zend_pre_incdec_overloaded_property(object, property, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
                }
 +      } while (0);
  
 -      } else {
 -
 -      }
 -
 -      Z_TYPE(EX_T(opline->result.var).tmp_var) = IS_BOOL;
 -      if (opline->extended_value & ZEND_ISSET) {
 -              Z_LVAL(EX_T(opline->result.var).tmp_var) = result;
 -      } else {
 -              Z_LVAL(EX_T(opline->result.var).tmp_var) = !result;
 -      }
 +      zval_ptr_dtor_nogc(free_op2);
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_ISSET_ISEMPTY_DIM_OBJ_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_INC_OBJ_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_isset_isempty_dim_prop_obj_handler_SPEC_UNUSED_CONST(0, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_UNUSED_TMPVAR(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_ISSET_ISEMPTY_PROP_OBJ_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_DEC_OBJ_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_isset_isempty_dim_prop_obj_handler_SPEC_UNUSED_CONST(1, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_UNUSED_TMPVAR(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_YIELD_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_post_incdec_property_helper_SPEC_UNUSED_TMPVAR(int inc ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 +      zend_free_op free_op2;
 +      zval *object;
 +      zval *property;
 +      zval *zptr;
  
 -      /* The generator object is stored in return_value_ptr_ptr */
 -      zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr);
 +      SAVE_OPLINE();
 +      object = _get_obj_zval_ptr_unused(execute_data);
  
 -      if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
 -              zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
        }
  
 -      /* Destroy the previously yielded value */
 -      if (generator->value) {
 -              zval_ptr_dtor(&generator->value);
 -      }
 +      property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
  
 -      /* Destroy the previously yielded key */
 -      if (generator->key) {
 -              zval_ptr_dtor(&generator->key);
 +      if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
        }
  
 -      /* Set the new yielded value */
 -      if (IS_UNUSED != IS_UNUSED) {
 -
 -
 -              if (EX(op_array)->fn_flags & ZEND_ACC_RETURN_REFERENCE) {
 -                      /* Constants and temporary variables aren't yieldable by reference,
 -                       * but we still allow them with a notice. */
 -                      if (IS_UNUSED == IS_CONST || IS_UNUSED == IS_TMP_VAR) {
 -                              zval *value, *copy;
 -
 -                              zend_error(E_NOTICE, "Only variable references should be yielded by reference");
 -
 -                              value = NULL;
 -                              ALLOC_ZVAL(copy);
 -                              INIT_PZVAL_COPY(copy, value);
 +      do {
 +              if (IS_UNUSED != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                              break;
 +                      }
 +              }
  
 -                              /* Temporary variables don't need ctor copying */
 -                              if (!0) {
 -                                      zval_copy_ctor(copy);
 -                              }
 +              /* here we are sure we are dealing with an object */
  
 -                              generator->value = copy;
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
-                               }
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              ZVAL_NULL(EX_VAR(opline->result.var));
                        } else {
-                               ZVAL_DEREF(zptr);
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               zval_opt_copy_ctor(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
 -                              zval **value_ptr = NULL;
 -
 -                              if (IS_UNUSED == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
 -                                      zend_error_noreturn(E_ERROR, "Cannot yield string offsets by reference");
 -                              }
 -
 -                              /* If a function call result is yielded and the function did
 -                               * not return by reference we throw a notice. */
 -                              if (IS_UNUSED == IS_VAR && !Z_ISREF_PP(value_ptr)
 -                                  && !(opline->extended_value == ZEND_RETURNS_FUNCTION
 -                                       && EX_T(opline->op1.var).var.fcall_returned_reference)
 -                                  && EX_T(opline->op1.var).var.ptr_ptr == &EX_T(opline->op1.var).var.ptr) {
 -                                      zend_error(E_NOTICE, "Only variable references should be yielded by reference");
 -
 -                                      Z_ADDREF_PP(value_ptr);
 -                                      generator->value = *value_ptr;
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
                                } else {
-                                       decrement_function(zptr);
 -                                      SEPARATE_ZVAL_TO_MAKE_IS_REF(value_ptr);
 -                                      Z_ADDREF_PP(value_ptr);
 -                                      generator->value = *value_ptr;
++                                      ZVAL_DEREF(zptr);
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      zval_opt_copy_ctor(zptr);
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
                                }
 -
                        }
                } else {
 -                      zval *value = NULL;
 +                      zend_post_incdec_overloaded_property(object, property, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, EX_VAR(opline->result.var));
 +              }
 +      } while (0);
  
 -                      /* Consts, temporary variables and references need copying */
 -                      if (IS_UNUSED == IS_CONST || IS_UNUSED == IS_TMP_VAR
 -                              || PZVAL_IS_REF(value)
 -                      ) {
 -                              zval *copy;
 +      zval_ptr_dtor_nogc(free_op2);
  
 -                              ALLOC_ZVAL(copy);
 -                              INIT_PZVAL_COPY(copy, value);
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
 +}
  
 -                              /* Temporary variables don't need ctor copying */
 -                              if (!0) {
 -                                      zval_copy_ctor(copy);
 -                              }
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_INC_OBJ_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_UNUSED_TMPVAR(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +}
  
 -                              generator->value = copy;
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_DEC_OBJ_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_UNUSED_TMPVAR(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +}
  
 -                      } else {
 -                              if (IS_UNUSED == IS_CV) {
 -                                      Z_ADDREF_P(value);
 -                              }
 -                              generator->value = value;
 -                      }
 -              }
 -      } else {
 -              /* If no value was specified yield null */
 -              Z_ADDREF(EG(uninitialized_zval));
 -              generator->value = &EG(uninitialized_zval);
 -      }
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_OBJ_R_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      USE_OPLINE
  
 -      /* Set the new yielded key */
 -      if (IS_CONST != IS_UNUSED) {
 +      zval *container;
 +      zend_free_op free_op2;
 +      zval *offset;
  
 -              zval *key = opline->op2.zv;
 +      SAVE_OPLINE();
 +      container = _get_obj_zval_ptr_unused(execute_data);
  
 -              /* Consts, temporary variables and references need copying */
 -              if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR
 -                      || (PZVAL_IS_REF(key) && Z_REFCOUNT_P(key) > 0)
 -              ) {
 -                      zval *copy;
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
 +      }
  
 -                      ALLOC_ZVAL(copy);
 -                      INIT_PZVAL_COPY(copy, key);
 +      offset = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
  
 -                      /* Temporary variables don't need ctor copying */
 -                      if (!0) {
 -                              zval_copy_ctor(copy);
 +      if (IS_UNUSED == IS_CONST ||
 +          (IS_UNUSED != IS_UNUSED && UNEXPECTED(Z_TYPE_P(container) != IS_OBJECT))) {
 +              if ((IS_UNUSED & (IS_VAR|IS_CV)) && Z_ISREF_P(container)) {
 +                      container = Z_REFVAL_P(container);
 +                      if (UNEXPECTED(Z_TYPE_P(container) != IS_OBJECT)) {
 +                              goto fetch_obj_r_no_object;
                        }
 -
 -                      generator->key = copy;
                } else {
 -                      Z_ADDREF_P(key);
 -                      generator->key = key;
 -              }
 -
 -              if (Z_TYPE_P(generator->key) == IS_LONG
 -                  && Z_LVAL_P(generator->key) > generator->largest_used_integer_key
 -              ) {
 -                      generator->largest_used_integer_key = Z_LVAL_P(generator->key);
 +                      goto fetch_obj_r_no_object;
                }
 +      }
  
 -      } else {
 -              /* If no key was specified we use auto-increment keys */
 -              generator->largest_used_integer_key++;
 +      /* here we are sure we are dealing with an object */
 +      do {
 +              zend_object *zobj = Z_OBJ_P(container);
 +              zval *retval;
  
 -              ALLOC_INIT_ZVAL(generator->key);
 -              ZVAL_LONG(generator->key, generator->largest_used_integer_key);
 -      }
 +              if ((IS_TMP_VAR|IS_VAR) == IS_CONST &&
 +                      EXPECTED(zobj->ce == CACHED_PTR(Z_CACHE_SLOT_P(offset)))) {
 +                      uint32_t prop_offset = (uint32_t)(intptr_t)CACHED_PTR(Z_CACHE_SLOT_P(offset) + sizeof(void*));
  
 -      if (RETURN_VALUE_USED(opline)) {
 -              /* If the return value of yield is used set the send
 -               * target and initialize it to NULL */
 -              generator->send_target = &EX_T(opline->result.var).var.ptr;
 -              Z_ADDREF(EG(uninitialized_zval));
 -              EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -      } else {
 -              generator->send_target = NULL;
 -      }
 +                      if (EXPECTED(prop_offset != (uint32_t)ZEND_DYNAMIC_PROPERTY_OFFSET)) {
 +                              retval = OBJ_PROP(zobj, prop_offset);
 +                              if (EXPECTED(Z_TYPE_P(retval) != IS_UNDEF)) {
 +                                      ZVAL_COPY(EX_VAR(opline->result.var), retval);
 +                                      break;
 +                              }
 +                      } else if (EXPECTED(zobj->properties != NULL)) {
 +                              retval = zend_hash_find(zobj->properties, Z_STR_P(offset));
 +                              if (EXPECTED(retval)) {
 +                                      ZVAL_COPY(EX_VAR(opline->result.var), retval);
 +                                      break;
 +                              }
 +                      }
 +              }
  
 -      /* We increment to the next op, so we are at the correct position when the
 -       * generator is resumed. */
 -      ZEND_VM_INC_OPCODE();
 +              if (UNEXPECTED(zobj->handlers->read_property == NULL)) {
 +fetch_obj_r_no_object:
 +                      zend_error(E_NOTICE, "Trying to get property of non-object");
 +                      ZVAL_NULL(EX_VAR(opline->result.var));
 +              } else {
 +                      retval = zobj->handlers->read_property(container, offset, BP_VAR_R, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(offset)) : NULL), EX_VAR(opline->result.var));
  
 -      /* The GOTO VM uses a local opline variable. We need to set the opline
 -       * variable in execute_data so we don't resume at an old position. */
 -      SAVE_OPLINE();
 +                      if (retval != EX_VAR(opline->result.var)) {
 +                              ZVAL_COPY(EX_VAR(opline->result.var), retval);
 +                      }
 +              }
 +      } while (0);
  
 -      ZEND_VM_RETURN();
 +      zval_ptr_dtor_nogc(free_op2);
 +
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_POW_SPEC_UNUSED_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_OBJ_W_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_binary_assign_op_helper_SPEC_UNUSED_CONST(pow_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      USE_OPLINE
 +      zend_free_op free_op1, free_op2;
 +      zval *property;
 +      zval *container;
 +
 +      SAVE_OPLINE();
 +      property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
 +
 +      container = _get_obj_zval_ptr_unused(execute_data);
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
 +      }
 +      if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an object");
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
 +      }
 +
 +      zend_fetch_property_address(EX_VAR(opline->result.var), container, IS_UNUSED, property, (IS_TMP_VAR|IS_VAR), (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), BP_VAR_W);
 +      zval_ptr_dtor_nogc(free_op2);
 +      if (IS_UNUSED == IS_VAR && READY_TO_DESTROY(free_op1)) {
 +              EXTRACT_ZVAL_PTR(EX_VAR(opline->result.var), 0);
 +      }
 +
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMP(int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC), ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_OBJ_RW_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
 -      zend_free_op free_op2, free_op_data1;
 -      zval **object_ptr = _get_obj_zval_ptr_ptr_unused(TSRMLS_C);
 -      zval *object;
 -      zval *property = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 -      zval *value = get_zval_ptr((opline+1)->op1_type, &(opline+1)->op1, execute_data, &free_op_data1, BP_VAR_R);
 -      int have_get_ptr = 0;
 +      zend_free_op free_op1, free_op2;
 +      zval *property;
 +      zval *container;
 +
 +      SAVE_OPLINE();
 +      property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
 +      container = _get_obj_zval_ptr_unused(execute_data);
  
 -      if (IS_UNUSED == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an object");
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
 +      }
 +      if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an object");
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
 +      }
 +      zend_fetch_property_address(EX_VAR(opline->result.var), container, IS_UNUSED, property, (IS_TMP_VAR|IS_VAR), (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), BP_VAR_RW);
 +      zval_ptr_dtor_nogc(free_op2);
 +      if (IS_UNUSED == IS_VAR && READY_TO_DESTROY(free_op1)) {
 +              EXTRACT_ZVAL_PTR(EX_VAR(opline->result.var), 0);
        }
  
 -      make_real_object(object_ptr TSRMLS_CC);
 -      object = *object_ptr;
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
 +}
  
 -      if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 -              zend_error(E_WARNING, "Attempt to assign property of non-object");
 -              zval_dtor(free_op2.var);
 -              FREE_OP(free_op_data1);
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_OBJ_IS_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      USE_OPLINE
  
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -              }
 -      } else {
 -              /* here we are sure we are dealing with an object */
 -              if (1) {
 -                      MAKE_REAL_ZVAL_PTR(property);
 -              }
 +      zval *container;
 +      zend_free_op free_op2;
 +      zval *offset;
  
 -              /* here property is a string */
 -              if (opline->extended_value == ZEND_ASSIGN_OBJ
 -                      && Z_OBJ_HT_P(object)->get_property_ptr_ptr) {
 -                      zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      if (zptr != NULL) {                     /* NULL means no success in getting PTR */
 -                              have_get_ptr = 1;
 -                              if (UNEXPECTED(*zptr == &EG(error_zval))) {
 -                                      if (RETURN_VALUE_USED(opline)) {
 -                                              PZVAL_LOCK(&EG(uninitialized_zval));
 -                                              EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -                                      }
 -                              } else {
 -                                      SEPARATE_ZVAL_IF_NOT_REF(zptr);
 +      SAVE_OPLINE();
 +      container = _get_obj_zval_ptr_unused(execute_data);
  
 -                                      binary_op(*zptr, *zptr, value TSRMLS_CC);
 -                                      if (RETURN_VALUE_USED(opline)) {
 -                                              PZVAL_LOCK(*zptr);
 -                                              EX_T(opline->result.var).var.ptr = *zptr;
 -                                      }
 -                              }
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
 +      }
 +
 +      offset  = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
 +
 +      if (IS_UNUSED == IS_CONST ||
 +          (IS_UNUSED != IS_UNUSED && UNEXPECTED(Z_TYPE_P(container) != IS_OBJECT))) {
 +              if ((IS_UNUSED & (IS_VAR|IS_CV)) && Z_ISREF_P(container)) {
 +                      container = Z_REFVAL_P(container);
 +                      if (UNEXPECTED(Z_TYPE_P(container) != IS_OBJECT)) {
 +                              goto fetch_obj_is_no_object;
                        }
 +              } else {
 +                      goto fetch_obj_is_no_object;
                }
 +      }
  
 -              if (!have_get_ptr) {
 -                      zval *z = NULL;
 +      /* here we are sure we are dealing with an object */
 +      do {
 +              zend_object *zobj = Z_OBJ_P(container);
 +              zval *retval;
  
 -                      Z_ADDREF_P(object);
 -                      if (opline->extended_value == ZEND_ASSIGN_OBJ) {
 -                              if (Z_OBJ_HT_P(object)->read_property) {
 -                                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                              }
 -                      } else /* if (opline->extended_value == ZEND_ASSIGN_DIM) */ {
 -                              if (Z_OBJ_HT_P(object)->read_dimension) {
 -                                      z = Z_OBJ_HT_P(object)->read_dimension(object, property, BP_VAR_R TSRMLS_CC);
 -                              }
 -                      }
 -                      if (z) {
 -                              if (Z_TYPE_P(z) == IS_OBJECT && Z_OBJ_HT_P(z)->get) {
 -                                      zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 +              if ((IS_TMP_VAR|IS_VAR) == IS_CONST &&
 +                      EXPECTED(zobj->ce == CACHED_PTR(Z_CACHE_SLOT_P(offset)))) {
 +                      uint32_t prop_offset = (uint32_t)(intptr_t)CACHED_PTR(Z_CACHE_SLOT_P(offset) + sizeof(void*));
  
 -                                      if (Z_REFCOUNT_P(z) == 0) {
 -                                              GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                              zval_dtor(z);
 -                                              FREE_ZVAL(z);
 -                                      }
 -                                      z = value;
 -                              }
 -                              Z_ADDREF_P(z);
 -                              SEPARATE_ZVAL_IF_NOT_REF(&z);
 -                              binary_op(z, z, value TSRMLS_CC);
 -                              if (opline->extended_value == ZEND_ASSIGN_OBJ) {
 -                                      Z_OBJ_HT_P(object)->write_property(object, property, z, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                              } else /* if (opline->extended_value == ZEND_ASSIGN_DIM) */ {
 -                                      Z_OBJ_HT_P(object)->write_dimension(object, property, z TSRMLS_CC);
 -                              }
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      PZVAL_LOCK(z);
 -                                      EX_T(opline->result.var).var.ptr = z;
 +                      if (EXPECTED(prop_offset != (uint32_t)ZEND_DYNAMIC_PROPERTY_OFFSET)) {
 +                              retval = OBJ_PROP(zobj, prop_offset);
 +                              if (EXPECTED(Z_TYPE_P(retval) != IS_UNDEF)) {
 +                                      ZVAL_COPY(EX_VAR(opline->result.var), retval);
 +                                      break;
                                }
 -                              zval_ptr_dtor(&z);
 -                      } else {
 -                              zend_error(E_WARNING, "Attempt to assign property of non-object");
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                                      EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 +                      } else if (EXPECTED(zobj->properties != NULL)) {
 +                              retval = zend_hash_find(zobj->properties, Z_STR_P(offset));
 +                              if (EXPECTED(retval)) {
 +                                      ZVAL_COPY(EX_VAR(opline->result.var), retval);
 +                                      break;
                                }
                        }
 -                      zval_ptr_dtor(&object);
                }
  
 -              if (1) {
 -                      zval_ptr_dtor(&property);
 +              if (UNEXPECTED(zobj->handlers->read_property == NULL)) {
 +fetch_obj_is_no_object:
 +                      ZVAL_NULL(EX_VAR(opline->result.var));
                } else {
 -                      zval_dtor(free_op2.var);
 +
 +                      retval = zobj->handlers->read_property(container, offset, BP_VAR_IS, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(offset)) : NULL), EX_VAR(opline->result.var));
 +
 +                      if (retval != EX_VAR(opline->result.var)) {
 +                              ZVAL_COPY(EX_VAR(opline->result.var), retval);
 +                      }
                }
 -              FREE_OP(free_op_data1);
 -      }
 +      } while (0);
  
 -      /* assign_obj has two opcodes! */
 -      CHECK_EXCEPTION();
 -      ZEND_VM_INC_OPCODE();
 -      ZEND_VM_NEXT_OPCODE();
 +      zval_ptr_dtor_nogc(free_op2);
 +
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL zend_binary_assign_op_helper_SPEC_UNUSED_TMP(int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC), ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_OBJ_FUNC_ARG_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
 -      zend_free_op free_op2, free_op_data2, free_op_data1;
 -      zval **var_ptr;
 -      zval *value;
 -
 -      SAVE_OPLINE();
 -      switch (opline->extended_value) {
 -              case ZEND_ASSIGN_OBJ:
 -                      return zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMP(binary_op, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -                      break;
 -              case ZEND_ASSIGN_DIM: {
 -                              zval **container = _get_obj_zval_ptr_ptr_unused(TSRMLS_C);
 -
 -                              if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
 -                                      zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
 -                              } else if (UNEXPECTED(Z_TYPE_PP(container) == IS_OBJECT)) {
 -                                      if (IS_UNUSED == IS_VAR && !0) {
 -                                              Z_ADDREF_PP(container);  /* undo the effect of get_obj_zval_ptr_ptr() */
 -                                      }
 -                                      return zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMP(binary_op, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -                              } else {
 -                                      zval *dim = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 +      zval *container;
  
 -                                      zend_fetch_dimension_address(&EX_T((opline+1)->op2.var), container, dim, IS_TMP_VAR, BP_VAR_RW TSRMLS_CC);
 -                                      value = get_zval_ptr((opline+1)->op1_type, &(opline+1)->op1, execute_data, &free_op_data1, BP_VAR_R);
 -                                      var_ptr = _get_zval_ptr_ptr_var((opline+1)->op2.var, execute_data, &free_op_data2 TSRMLS_CC);
 -                              }
 -                      }
 -                      break;
 -              default:
 -                      value = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 -                      var_ptr = NULL;
 -                      /* do nothing */
 -                      break;
 -      }
 +      if (zend_is_by_ref_func_arg_fetch(opline, EX(call))) {
 +              /* Behave like FETCH_OBJ_W */
 +              zend_free_op free_op1, free_op2;
 +              zval *property;
  
 -      if (UNEXPECTED(var_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use assign-op operators with overloaded objects nor string offsets");
 -      }
 +              SAVE_OPLINE();
 +              property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
 +              container = _get_obj_zval_ptr_unused(execute_data);
  
 -      if (UNEXPECTED(*var_ptr == &EG(error_zval))) {
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 +              if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
 +                      zend_throw_error(NULL, "Using $this when not in object context");
 +                      zval_ptr_dtor_nogc(free_op2);
 +                      HANDLE_EXCEPTION();
                }
 -              zval_dtor(free_op2.var);
 +              if (IS_UNUSED == IS_CONST || IS_UNUSED == IS_TMP_VAR) {
 +                      zend_throw_error(NULL, "Cannot use temporary expression in write context");
 +                      zval_ptr_dtor_nogc(free_op2);
  
 -              CHECK_EXCEPTION();
 -              if (opline->extended_value == ZEND_ASSIGN_DIM) {
 -                      ZEND_VM_INC_OPCODE();
 +                      HANDLE_EXCEPTION();
 +              }
 +              if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
 +                      zend_throw_error(NULL, "Cannot use string offset as an object");
 +                      zval_ptr_dtor_nogc(free_op2);
 +                      HANDLE_EXCEPTION();
 +              }
 +              zend_fetch_property_address(EX_VAR(opline->result.var), container, IS_UNUSED, property, (IS_TMP_VAR|IS_VAR), (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), BP_VAR_W);
 +              zval_ptr_dtor_nogc(free_op2);
 +              if (IS_UNUSED == IS_VAR && READY_TO_DESTROY(free_op1)) {
 +                      EXTRACT_ZVAL_PTR(EX_VAR(opline->result.var), 0);
                }
 -              ZEND_VM_NEXT_OPCODE();
 -      }
 -
 -      SEPARATE_ZVAL_IF_NOT_REF(var_ptr);
  
 -      if (UNEXPECTED(Z_TYPE_PP(var_ptr) == IS_OBJECT)
 -         && Z_OBJ_HANDLER_PP(var_ptr, get)
 -         && Z_OBJ_HANDLER_PP(var_ptr, set)) {
 -              /* proxy object */
 -              zval *objval = Z_OBJ_HANDLER_PP(var_ptr, get)(*var_ptr TSRMLS_CC);
 -              Z_ADDREF_P(objval);
 -              binary_op(objval, objval, value TSRMLS_CC);
 -              Z_OBJ_HANDLER_PP(var_ptr, set)(var_ptr, objval TSRMLS_CC);
 -              zval_ptr_dtor(&objval);
 +              ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
        } else {
 -              binary_op(*var_ptr, *var_ptr, value TSRMLS_CC);
 +              ZEND_VM_TAIL_CALL(ZEND_FETCH_OBJ_R_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU));
        }
 +}
  
 -      if (RETURN_VALUE_USED(opline)) {
 -              PZVAL_LOCK(*var_ptr);
 -              EX_T(opline->result.var).var.ptr = *var_ptr;
 -      }
 -      zval_dtor(free_op2.var);
 -
 -      if (opline->extended_value == ZEND_ASSIGN_DIM) {
 -              FREE_OP(free_op_data1);
 -              FREE_OP_VAR_PTR(free_op_data2);
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_OBJ_UNSET_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      USE_OPLINE
 +      zend_free_op free_op1, free_op2;
 +      zval *container, *property;
  
 -              CHECK_EXCEPTION();
 -              ZEND_VM_INC_OPCODE();
 -      } else {
 +      SAVE_OPLINE();
 +      container = _get_obj_zval_ptr_unused(execute_data);
  
 -              CHECK_EXCEPTION();
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
        }
 -      ZEND_VM_NEXT_OPCODE();
 -}
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_ADD_SPEC_UNUSED_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_UNUSED_TMP(add_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +      property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_SUB_SPEC_UNUSED_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_UNUSED_TMP(sub_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +      if (IS_UNUSED == IS_VAR && UNEXPECTED(container == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an object");
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
 +      }
 +      zend_fetch_property_address(EX_VAR(opline->result.var), container, IS_UNUSED, property, (IS_TMP_VAR|IS_VAR), (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), BP_VAR_UNSET);
 +      zval_ptr_dtor_nogc(free_op2);
 +      if (IS_UNUSED == IS_VAR && READY_TO_DESTROY(free_op1)) {
 +              EXTRACT_ZVAL_PTR(EX_VAR(opline->result.var), 0);
 +      }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_MUL_SPEC_UNUSED_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_UNUSED_TMP(mul_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_DIV_SPEC_UNUSED_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_OBJ_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_binary_assign_op_helper_SPEC_UNUSED_TMP(div_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +      USE_OPLINE
 +      zend_free_op free_op2;
 +      zval *object;
 +      zval *property_name;
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_MOD_SPEC_UNUSED_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_UNUSED_TMP(mod_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +      SAVE_OPLINE();
 +      object = _get_obj_zval_ptr_unused(execute_data);
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_SL_SPEC_UNUSED_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_UNUSED_TMP(shift_left_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
 +      }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_SR_SPEC_UNUSED_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_UNUSED_TMP(shift_right_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +      property_name = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_CONCAT_SPEC_UNUSED_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_UNUSED_TMP(concat_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +      if (IS_UNUSED == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an array");
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
 +      }
 +      zend_assign_to_object(UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL, object, IS_UNUSED, property_name, (IS_TMP_VAR|IS_VAR), (opline+1)->op1_type, (opline+1)->op1, execute_data, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property_name)) : NULL));
 +      zval_ptr_dtor_nogc(free_op2);
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_BW_OR_SPEC_UNUSED_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_UNUSED_TMP(bitwise_or_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      /* assign_obj has two opcodes! */
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_BW_AND_SPEC_UNUSED_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ROPE_INIT_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_binary_assign_op_helper_SPEC_UNUSED_TMP(bitwise_and_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +      USE_OPLINE
 +      zend_free_op free_op2;
 +      zend_string **rope;
 +      zval *var;
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_BW_XOR_SPEC_UNUSED_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_UNUSED_TMP(bitwise_xor_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      /* Compiler allocates the necessary number of zval slots to keep the rope */
 +      rope = (zend_string**)EX_VAR(opline->result.var);
 +      if ((IS_TMP_VAR|IS_VAR) == IS_CONST) {
 +              var = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
 +              rope[0] = zend_string_copy(Z_STR_P(var));
 +      } else {
 +              var = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
 +              if (EXPECTED(Z_TYPE_P(var) == IS_STRING)) {
 +                      if ((IS_TMP_VAR|IS_VAR) == IS_CV) {
 +                              rope[0] = zend_string_copy(Z_STR_P(var));
 +                      } else {
 +                              rope[0] = Z_STR_P(var);
 +                      }
 +              } else {
 +                      SAVE_OPLINE();
 +                      if ((IS_TMP_VAR|IS_VAR) == IS_CV && UNEXPECTED(Z_TYPE_P(var) == IS_UNDEF)) {
 +                              GET_OP2_UNDEF_CV(var, BP_VAR_R);
 +                      }
 +                      rope[0] = _zval_get_string_func(var);
 +                      zval_ptr_dtor_nogc(free_op2);
 +                      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
 +              }
 +      }
 +      ZEND_VM_NEXT_OPCODE();
  }
  
 -static int ZEND_FASTCALL zend_pre_incdec_property_helper_SPEC_UNUSED_TMP(incdec_t incdec_op, ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_INIT_METHOD_CALL_SPEC_UNUSED_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
 +      zval *function_name;
        zend_free_op free_op2;
 -      zval **object_ptr;
        zval *object;
 -      zval *property;
 -      zval **retval;
 -      int have_get_ptr = 0;
 +      zend_function *fbc;
 +      zend_class_entry *called_scope;
 +      zend_object *obj;
 +      zend_execute_data *call;
 +      uint32_t call_info;
  
        SAVE_OPLINE();
 -      object_ptr = _get_obj_zval_ptr_ptr_unused(TSRMLS_C);
 -      property = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 -      retval = &EX_T(opline->result.var).var.ptr;
 -
 -      if (IS_UNUSED == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot increment/decrement overloaded objects nor string offsets");
 -      }
  
 -      make_real_object(object_ptr TSRMLS_CC); /* this should modify object only if it's empty */
 -      object = *object_ptr;
 +      function_name = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
  
 -      if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 -              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -              zval_dtor(free_op2.var);
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      *retval = &EG(uninitialized_zval);
 -              }
 +      if ((IS_TMP_VAR|IS_VAR) != IS_CONST &&
 +          UNEXPECTED(Z_TYPE_P(function_name) != IS_STRING)) {
 +              do {
 +                      if (((IS_TMP_VAR|IS_VAR) & (IS_VAR|IS_CV)) && Z_ISREF_P(function_name)) {
 +                              function_name = Z_REFVAL_P(function_name);
 +                              if (EXPECTED(Z_TYPE_P(function_name) == IS_STRING)) {
 +                                      break;
 +                              }
 +                      } else if ((IS_TMP_VAR|IS_VAR) == IS_CV && UNEXPECTED(Z_TYPE_P(function_name) == IS_UNDEF)) {
 +                              GET_OP2_UNDEF_CV(function_name, BP_VAR_R);
 +                              if (UNEXPECTED(EG(exception) != NULL)) {
 +                                      HANDLE_EXCEPTION();
 +                              }
 +                      }
 +                      zend_throw_error(NULL, "Method name must be a string");
 +                      zval_ptr_dtor_nogc(free_op2);
  
 -              CHECK_EXCEPTION();
 -              ZEND_VM_NEXT_OPCODE();
 +                      HANDLE_EXCEPTION();
 +              } while (0);
        }
  
 -      /* here we are sure we are dealing with an object */
 +      object = _get_obj_zval_ptr_unused(execute_data);
  
 -      if (1) {
 -              MAKE_REAL_ZVAL_PTR(property);
 +      if (IS_UNUSED == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
        }
  
 -      if (Z_OBJ_HT_P(object)->get_property_ptr_ptr) {
 -              zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -              if (zptr != NULL) {                     /* NULL means no success in getting PTR */
 -                      have_get_ptr = 1;
 -                      if (UNEXPECTED(*zptr == &EG(error_zval))) {
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                                      *retval = &EG(uninitialized_zval);
 +      if (IS_UNUSED != IS_UNUSED) {
 +              do {
 +                      if (IS_UNUSED == IS_CONST || UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                              if ((IS_UNUSED & (IS_VAR|IS_CV)) && EXPECTED(Z_ISREF_P(object))) {
 +                                      object = Z_REFVAL_P(object);
 +                                      if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) {
 +                                              break;
 +                                      }
                                }
 -                      } else {
 -                              SEPARATE_ZVAL_IF_NOT_REF(zptr);
 -
 -                              incdec_op(*zptr);
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      *retval = *zptr;
 -                                      PZVAL_LOCK(*retval);
 +                              if (IS_UNUSED == IS_CV && UNEXPECTED(Z_TYPE_P(object) == IS_UNDEF)) {
 +                                      object = GET_OP1_UNDEF_CV(object, BP_VAR_R);
 +                                      if (UNEXPECTED(EG(exception) != NULL)) {
 +                                              zval_ptr_dtor_nogc(free_op2);
 +                                              HANDLE_EXCEPTION();
 +                                      }
                                }
 +                              zend_throw_error(NULL, "Call to a member function %s() on %s", Z_STRVAL_P(function_name), zend_get_type_by_const(Z_TYPE_P(object)));
 +                              zval_ptr_dtor_nogc(free_op2);
 +
 +                              HANDLE_EXCEPTION();
                        }
 -              }
 +              } while (0);
        }
  
 -      if (!have_get_ptr) {
 -              if (Z_OBJ_HT_P(object)->read_property && Z_OBJ_HT_P(object)->write_property) {
 -                      zval *z;
 +      obj = Z_OBJ_P(object);
 +      called_scope = obj->ce;
  
 -                      Z_ADDREF_P(object);
 -                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 +      if ((IS_TMP_VAR|IS_VAR) != IS_CONST ||
 +          UNEXPECTED((fbc = CACHED_POLYMORPHIC_PTR(Z_CACHE_SLOT_P(function_name), called_scope)) == NULL)) {
 +          zend_object *orig_obj = obj;
  
 -                      if (UNEXPECTED(Z_TYPE_P(z) == IS_OBJECT) && Z_OBJ_HT_P(z)->get) {
 -                              zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 +              if (UNEXPECTED(obj->handlers->get_method == NULL)) {
 +                      zend_throw_error(NULL, "Object does not support method calls");
 +                      zval_ptr_dtor_nogc(free_op2);
  
 -                              if (Z_REFCOUNT_P(z) == 0) {
 -                                      GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                      zval_dtor(z);
 -                                      FREE_ZVAL(z);
 -                              }
 -                              z = value;
 -                      }
 -                      Z_ADDREF_P(z);
 -                      SEPARATE_ZVAL_IF_NOT_REF(&z);
 -                      incdec_op(z);
 -                      *retval = z;
 -                      Z_OBJ_HT_P(object)->write_property(object, property, z, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      zval_ptr_dtor(&object);
 -                      SELECTIVE_PZVAL_LOCK(*retval, opline);
 -                      zval_ptr_dtor(&z);
 -              } else {
 -                      zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -                      if (RETURN_VALUE_USED(opline)) {
 -                              PZVAL_LOCK(&EG(uninitialized_zval));
 -                              *retval = &EG(uninitialized_zval);
 +                      HANDLE_EXCEPTION();
 +              }
 +
 +              /* First, locate the function. */
 +              fbc = obj->handlers->get_method(&obj, Z_STR_P(function_name), (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? (EX_CONSTANT(opline->op2) + 1) : NULL));
 +              if (UNEXPECTED(fbc == NULL)) {
 +                      if (EXPECTED(!EG(exception))) {
 +                              zend_throw_error(NULL, "Call to undefined method %s::%s()", ZSTR_VAL(obj->ce->name), Z_STRVAL_P(function_name));
                        }
 +                      zval_ptr_dtor_nogc(free_op2);
 +
 +                      HANDLE_EXCEPTION();
 +              }
 +              if ((IS_TMP_VAR|IS_VAR) == IS_CONST &&
 +                  EXPECTED(fbc->type <= ZEND_USER_FUNCTION) &&
 +                  EXPECTED(!(fbc->common.fn_flags & (ZEND_ACC_CALL_VIA_TRAMPOLINE|ZEND_ACC_NEVER_CACHE))) &&
 +                  EXPECTED(obj == orig_obj)) {
 +                      CACHE_POLYMORPHIC_PTR(Z_CACHE_SLOT_P(function_name), called_scope, fbc);
                }
        }
  
@@@ -30458,98 -29176,167 +30530,103 @@@ static ZEND_OPCODE_HANDLER_RET ZEND_FAS
  {
        USE_OPLINE
  
 -      /* The generator object is stored in return_value_ptr_ptr */
 -      zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr);
 +      zval *op1, *op2;
  
 -      if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
 -              zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
 -      }
 +      SAVE_OPLINE();
 +      op1 = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var);
 +      op2 = EX_CONSTANT(opline->op2);
 +      bitwise_xor_function(EX_VAR(opline->result.var), op1, op2);
  
 -      /* Destroy the previously yielded value */
 -      if (generator->value) {
 -              zval_ptr_dtor(&generator->value);
 -      }
  
 -      /* Destroy the previously yielded key */
 -      if (generator->key) {
 -              zval_ptr_dtor(&generator->key);
 -      }
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
 +}
  
 -      /* Set the new yielded value */
 -      if (IS_UNUSED != IS_UNUSED) {
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_BOOL_XOR_SPEC_CV_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +      USE_OPLINE
  
 +      zval *op1, *op2;
  
 -              if (EX(op_array)->fn_flags & ZEND_ACC_RETURN_REFERENCE) {
 -                      /* Constants and temporary variables aren't yieldable by reference,
 -                       * but we still allow them with a notice. */
 -                      if (IS_UNUSED == IS_CONST || IS_UNUSED == IS_TMP_VAR) {
 -                              zval *value, *copy;
 +      SAVE_OPLINE();
 +      op1 = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var);
 +      op2 = EX_CONSTANT(opline->op2);
 +      boolean_xor_function(EX_VAR(opline->result.var), op1, op2);
  
 -                              zend_error(E_NOTICE, "Only variable references should be yielded by reference");
  
 -                              value = NULL;
 -                              ALLOC_ZVAL(copy);
 -                              INIT_PZVAL_COPY(copy, value);
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
 +}
  
 -                              /* Temporary variables don't need ctor copying */
 -                              if (!0) {
 -                                      zval_copy_ctor(copy);
 -                              }
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_obj_helper_SPEC_CV_CONST(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
 +{
 +      USE_OPLINE
 +      zend_free_op free_op_data1;
 +      zval *object;
 +      zval *property;
 +      zval *value;
 +      zval *zptr;
  
 -                              generator->value = copy;
 -                      } else {
 -                              zval **value_ptr = NULL;
 +      SAVE_OPLINE();
 +      object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
  
 -                              if (IS_UNUSED == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
 -                                      zend_error_noreturn(E_ERROR, "Cannot yield string offsets by reference");
 -                              }
 +      if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -                              /* If a function call result is yielded and the function did
 -                               * not return by reference we throw a notice. */
 -                              if (IS_UNUSED == IS_VAR && !Z_ISREF_PP(value_ptr)
 -                                  && !(opline->extended_value == ZEND_RETURNS_FUNCTION
 -                                       && EX_T(opline->op1.var).var.fcall_returned_reference)
 -                                  && EX_T(opline->op1.var).var.ptr_ptr == &EX_T(opline->op1.var).var.ptr) {
 -                                      zend_error(E_NOTICE, "Only variable references should be yielded by reference");
 -
 -                                      Z_ADDREF_PP(value_ptr);
 -                                      generator->value = *value_ptr;
 -                              } else {
 -                                      SEPARATE_ZVAL_TO_MAKE_IS_REF(value_ptr);
 -                                      Z_ADDREF_PP(value_ptr);
 -                                      generator->value = *value_ptr;
 -                              }
 -
 -                      }
 -              } else {
 -                      zval *value = NULL;
 +              HANDLE_EXCEPTION();
 +      }
  
 -                      /* Consts, temporary variables and references need copying */
 -                      if (IS_UNUSED == IS_CONST || IS_UNUSED == IS_TMP_VAR
 -                              || PZVAL_IS_REF(value)
 -                      ) {
 -                              zval *copy;
 +      property = EX_CONSTANT(opline->op2);
  
 -                              ALLOC_ZVAL(copy);
 -                              INIT_PZVAL_COPY(copy, value);
 +      if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an object");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -                              /* Temporary variables don't need ctor copying */
 -                              if (!0) {
 -                                      zval_copy_ctor(copy);
 -                              }
 +              HANDLE_EXCEPTION();
 +      }
  
 -                              generator->value = copy;
 +      do {
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
  
 -                      } else {
 -                              if (IS_UNUSED == IS_CV) {
 -                                      Z_ADDREF_P(value);
 +              if (IS_CV != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to assign property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
                                }
 -                              generator->value = value;
 +                              break;
                        }
                }
 -      } else {
 -              /* If no value was specified yield null */
 -              Z_ADDREF(EG(uninitialized_zval));
 -              generator->value = &EG(uninitialized_zval);
 -      }
 -
 -      /* Set the new yielded key */
 -      if (IS_UNUSED != IS_UNUSED) {
 -
 -              zval *key = NULL;
 -
 -              /* Consts, temporary variables and references need copying */
 -              if (IS_UNUSED == IS_CONST || IS_UNUSED == IS_TMP_VAR
 -                      || (PZVAL_IS_REF(key) && Z_REFCOUNT_P(key) > 0)
 -              ) {
 -                      zval *copy;
  
 -                      ALLOC_ZVAL(copy);
 -                      INIT_PZVAL_COPY(copy, key);
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
++                              }
++                      } else {
++                              ZVAL_DEREF(zptr);
++                              SEPARATE_ZVAL_NOREF(zptr);
  
-                       ZVAL_DEREF(zptr);
-                       SEPARATE_ZVAL_NOREF(zptr);
-                       binary_op(zptr, zptr, value);
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 -                      /* Temporary variables don't need ctor copying */
 -                      if (!0) {
 -                              zval_copy_ctor(copy);
++                              binary_op(zptr, zptr, value);
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
++                              }
                        }
 -
 -                      generator->key = copy;
                } else {
 -                      Z_ADDREF_P(key);
 -                      generator->key = key;
 -              }
 -
 -              if (Z_TYPE_P(generator->key) == IS_LONG
 -                  && Z_LVAL_P(generator->key) > generator->largest_used_integer_key
 -              ) {
 -                      generator->largest_used_integer_key = Z_LVAL_P(generator->key);
 +                      zend_assign_op_overloaded_property(object, property, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), value, binary_op, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
                }
 +      } while (0);
  
 -      } else {
 -              /* If no key was specified we use auto-increment keys */
 -              generator->largest_used_integer_key++;
 -
 -              ALLOC_INIT_ZVAL(generator->key);
 -              ZVAL_LONG(generator->key, generator->largest_used_integer_key);
 -      }
 -
 -      if (RETURN_VALUE_USED(opline)) {
 -              /* If the return value of yield is used set the send
 -               * target and initialize it to NULL */
 -              generator->send_target = &EX_T(opline->result.var).var.ptr;
 -              Z_ADDREF(EG(uninitialized_zval));
 -              EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -      } else {
 -              generator->send_target = NULL;
 -      }
 -
 -      /* We increment to the next op, so we are at the correct position when the
 -       * generator is resumed. */
 -      ZEND_VM_INC_OPCODE();
 -
 -      /* The GOTO VM uses a local opline variable. We need to set the opline
 -       * variable in execute_data so we don't resume at an old position. */
 -      SAVE_OPLINE();
 +      FREE_OP(free_op_data1);
  
 -      ZEND_VM_RETURN();
 -}
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_POW_SPEC_UNUSED_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_UNUSED_UNUSED(pow_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      /* assign_obj has two opcodes! */
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
  }
  
 -static int ZEND_FASTCALL zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC), ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_dim_helper_SPEC_CV_CONST(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
        zend_free_op free_op_data1;
@@@ -30899,159 -29600,225 +30976,166 @@@ static ZEND_OPCODE_HANDLER_RET ZEND_FAS
  {
        USE_OPLINE
  
 -      zval **object_ptr;
        zval *object;
        zval *property;
 -      zval **retval;
 -      int have_get_ptr = 0;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      object_ptr = _get_obj_zval_ptr_ptr_unused(TSRMLS_C);
 -      property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
 -      retval = &EX_T(opline->result.var).var.ptr;
 -
 -      if (IS_UNUSED == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot increment/decrement overloaded objects nor string offsets");
 -      }
 -
 -      make_real_object(object_ptr TSRMLS_CC); /* this should modify object only if it's empty */
 -      object = *object_ptr;
 +      object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
  
 -      if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 -              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      *retval = &EG(uninitialized_zval);
 -              }
 +      if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
  
 -              CHECK_EXCEPTION();
 -              ZEND_VM_NEXT_OPCODE();
 +              HANDLE_EXCEPTION();
        }
  
 -      /* here we are sure we are dealing with an object */
 +      property = EX_CONSTANT(opline->op2);
  
 -      if (0) {
 -              MAKE_REAL_ZVAL_PTR(property);
 -      }
 +      if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
  
 -      if (Z_OBJ_HT_P(object)->get_property_ptr_ptr) {
 -              zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CV == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -              if (zptr != NULL) {                     /* NULL means no success in getting PTR */
 -                      have_get_ptr = 1;
 -                      if (UNEXPECTED(*zptr == &EG(error_zval))) {
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                                      *retval = &EG(uninitialized_zval);
 -                              }
 -                      } else {
 -                              SEPARATE_ZVAL_IF_NOT_REF(zptr);
 +              HANDLE_EXCEPTION();
 +      }
  
 -                              incdec_op(*zptr);
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      *retval = *zptr;
 -                                      PZVAL_LOCK(*retval);
 +      do {
 +              if (IS_CV != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
                                }
 +                              break;
                        }
                }
 -      }
 -
 -      if (!have_get_ptr) {
 -              if (Z_OBJ_HT_P(object)->read_property && Z_OBJ_HT_P(object)->write_property) {
 -                      zval *z;
 -
 -                      Z_ADDREF_P(object);
 -                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((IS_CV == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
  
 -                      if (UNEXPECTED(Z_TYPE_P(z) == IS_OBJECT) && Z_OBJ_HT_P(z)->get) {
 -                              zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
 +                      } else {
-                               ZVAL_DEREF(zptr);
-                               SEPARATE_ZVAL_NOREF(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      SEPARATE_ZVAL_NOREF(zptr);
 -                              if (Z_REFCOUNT_P(z) == 0) {
 -                                      GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                      zval_dtor(z);
 -                                      FREE_ZVAL(z);
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
++                              }
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
                                }
-                       }
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 -                              z = value;
                        }
 -                      Z_ADDREF_P(z);
 -                      SEPARATE_ZVAL_IF_NOT_REF(&z);
 -                      incdec_op(z);
 -                      *retval = z;
 -                      Z_OBJ_HT_P(object)->write_property(object, property, z, ((IS_CV == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      zval_ptr_dtor(&object);
 -                      SELECTIVE_PZVAL_LOCK(*retval, opline);
 -                      zval_ptr_dtor(&z);
                } else {
 -                      zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -                      if (RETURN_VALUE_USED(opline)) {
 -                              PZVAL_LOCK(&EG(uninitialized_zval));
 -                              *retval = &EG(uninitialized_zval);
 -                      }
 +                      zend_pre_incdec_overloaded_property(object, property, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
                }
 -      }
 -
 -      if (0) {
 -              zval_ptr_dtor(&property);
 -      } else {
 +      } while (0);
  
 -      }
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_PRE_INC_OBJ_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_INC_OBJ_SPEC_CV_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_pre_incdec_property_helper_SPEC_UNUSED_CV(increment_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_CV_CONST(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_PRE_DEC_OBJ_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_DEC_OBJ_SPEC_CV_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_pre_incdec_property_helper_SPEC_UNUSED_CV(decrement_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_CV_CONST(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL zend_post_incdec_property_helper_SPEC_UNUSED_CV(incdec_t incdec_op, ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_post_incdec_property_helper_SPEC_CV_CONST(int inc ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
  
 -      zval **object_ptr;
        zval *object;
        zval *property;
 -      zval *retval;
 -      int have_get_ptr = 0;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      object_ptr = _get_obj_zval_ptr_ptr_unused(TSRMLS_C);
 -      property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
 -      retval = &EX_T(opline->result.var).tmp_var;
 +      object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
  
 -      if (IS_UNUSED == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot increment/decrement overloaded objects nor string offsets");
 -      }
 +      if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
  
 -      make_real_object(object_ptr TSRMLS_CC); /* this should modify object only if it's empty */
 -      object = *object_ptr;
 +              HANDLE_EXCEPTION();
 +      }
  
 -      if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 -              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +      property = EX_CONSTANT(opline->op2);
  
 -              ZVAL_NULL(retval);
 +      if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
  
 -              CHECK_EXCEPTION();
 -              ZEND_VM_NEXT_OPCODE();
 +              HANDLE_EXCEPTION();
        }
  
 -      /* here we are sure we are dealing with an object */
 +      do {
 +              if (IS_CV != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                              break;
 +                      }
 +              }
  
 -      if (0) {
 -              MAKE_REAL_ZVAL_PTR(property);
 -      }
 +              /* here we are sure we are dealing with an object */
  
 -      if (Z_OBJ_HT_P(object)->get_property_ptr_ptr) {
 -              zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CV == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -              if (zptr != NULL) {                     /* NULL means no success in getting PTR */
 -                      have_get_ptr = 1;
 -                      if (UNEXPECTED(*zptr == &EG(error_zval))) {
 -                              ZVAL_NULL(retval);
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
-                               }
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              ZVAL_NULL(EX_VAR(opline->result.var));
                        } else {
-                               ZVAL_DEREF(zptr);
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               zval_opt_copy_ctor(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
 -                              SEPARATE_ZVAL_IF_NOT_REF(zptr);
 -
 -                              ZVAL_COPY_VALUE(retval, *zptr);
 -                              zendi_zval_copy_ctor(*retval);
 -
 -                              incdec_op(*zptr);
 -                      }
 -              }
 -      }
 -
 -      if (!have_get_ptr) {
 -              if (Z_OBJ_HT_P(object)->read_property && Z_OBJ_HT_P(object)->write_property) {
 -                      zval *z, *z_copy;
 -
 -                      Z_ADDREF_P(object);
 -                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((IS_CV == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      if (UNEXPECTED(Z_TYPE_P(z) == IS_OBJECT) && Z_OBJ_HT_P(z)->get) {
 -                              zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 -
 -                              if (Z_REFCOUNT_P(z) == 0) {
 -                                      GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                      zval_dtor(z);
 -                                      FREE_ZVAL(z);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      zval_opt_copy_ctor(zptr);
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
                                }
 -                              z = value;
                        }
 -                      ZVAL_COPY_VALUE(retval, z);
 -                      zendi_zval_copy_ctor(*retval);
 -                      ALLOC_ZVAL(z_copy);
 -                      INIT_PZVAL_COPY(z_copy, z);
 -                      zendi_zval_copy_ctor(*z_copy);
 -                      incdec_op(z_copy);
 -                      Z_ADDREF_P(z);
 -                      Z_OBJ_HT_P(object)->write_property(object, property, z_copy, ((IS_CV == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      zval_ptr_dtor(&object);
 -                      zval_ptr_dtor(&z_copy);
 -                      zval_ptr_dtor(&z);
                } else {
 -                      zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -                      ZVAL_NULL(retval);
 +                      zend_post_incdec_overloaded_property(object, property, ((IS_CONST == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, EX_VAR(opline->result.var));
                }
 -      }
 -
 -      if (0) {
 -              zval_ptr_dtor(&property);
 -      } else {
 +      } while (0);
  
 -      }
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_POST_INC_OBJ_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_INC_OBJ_SPEC_CV_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_post_incdec_property_helper_SPEC_UNUSED_CV(increment_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_CV_CONST(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_POST_DEC_OBJ_SPEC_UNUSED_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_DEC_OBJ_SPEC_CV_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_post_incdec_property_helper_SPEC_UNUSED_CV(decrement_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_CV_CONST(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL zend_fetch_property_address_read_helper_SPEC_UNUSED_CV(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_address_helper_SPEC_CV_CONST(int type ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
  
@@@ -35668,648 -34197,785 +35752,660 @@@ static ZEND_OPCODE_HANDLER_RET ZEND_FAS
  {
        USE_OPLINE
  
 +      zval *op1, *op2;
  
        SAVE_OPLINE();
 -      pow_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              opline->op2.zv TSRMLS_CC);
 -
 +      op1 = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var);
 +      op2 = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
 +      compare_function(EX_VAR(opline->result.var), op1, op2);
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_POW_SPEC_CV_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_CV_CONST(pow_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_ADD_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_BW_OR_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
 -      zend_free_op free_op2;
 +
 +      zval *op1, *op2;
  
        SAVE_OPLINE();
 -      fast_add_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
 +      op1 = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var);
 +      op2 = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
 +      bitwise_or_function(EX_VAR(opline->result.var), op1, op2);
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_SUB_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_BW_AND_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
 -      zend_free_op free_op2;
 +
 +      zval *op1, *op2;
  
        SAVE_OPLINE();
 -      fast_sub_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
 +      op1 = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var);
 +      op2 = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
 +      bitwise_and_function(EX_VAR(opline->result.var), op1, op2);
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_MUL_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_BW_XOR_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
 -      zend_free_op free_op2;
 +
 +      zval *op1, *op2;
  
        SAVE_OPLINE();
 -      fast_mul_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
 +      op1 = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var);
 +      op2 = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
 +      bitwise_xor_function(EX_VAR(opline->result.var), op1, op2);
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_DIV_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_BOOL_XOR_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
 -      zend_free_op free_op2;
 +
 +      zval *op1, *op2;
  
        SAVE_OPLINE();
 -      fast_div_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
 +      op1 = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var);
 +      op2 = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
 +      boolean_xor_function(EX_VAR(opline->result.var), op1, op2);
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_MOD_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_obj_helper_SPEC_CV_CV(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op2;
 +      zend_free_op free_op_data1;
 +      zval *object;
 +      zval *property;
 +      zval *value;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      fast_mod_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
 +      object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 -
 -static int ZEND_FASTCALL  ZEND_SL_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op2;
 +      if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -      SAVE_OPLINE();
 -      shift_left_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
 +              HANDLE_EXCEPTION();
 +      }
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +      property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
  
 -static int ZEND_FASTCALL  ZEND_SR_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op2;
 +      if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an object");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -      SAVE_OPLINE();
 -      shift_right_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
 +              HANDLE_EXCEPTION();
 +      }
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +      do {
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
  
 -static int ZEND_FASTCALL  ZEND_CONCAT_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op2;
 +              if (IS_CV != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to assign property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
 +                              break;
 +                      }
 +              }
  
 -      SAVE_OPLINE();
 -      concat_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
++                              }
++                      } else {
++                              ZVAL_DEREF(zptr);
++                              SEPARATE_ZVAL_NOREF(zptr);
  
-                       ZVAL_DEREF(zptr);
-                       SEPARATE_ZVAL_NOREF(zptr);
-                       binary_op(zptr, zptr, value);
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
++                              binary_op(zptr, zptr, value);
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
++                              }
 +                      }
 +              } else {
 +                      zend_assign_op_overloaded_property(object, property, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), value, binary_op, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
 +              }
 +      } while (0);
  
 -static int ZEND_FASTCALL  ZEND_IS_IDENTICAL_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op2;
 +      FREE_OP(free_op_data1);
  
 -      SAVE_OPLINE();
 -      is_identical_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      /* assign_obj has two opcodes! */
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
  }
  
 -static int ZEND_FASTCALL  ZEND_IS_NOT_IDENTICAL_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_dim_helper_SPEC_CV_CV(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op2;
 -      zval *result = &EX_T(opline->result.var).tmp_var;
 +      zend_free_op free_op_data1;
 +      zval *var_ptr, rv;
 +      zval *value, *container, *dim;
  
        SAVE_OPLINE();
 -      is_identical_function(result,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
 -      Z_LVAL_P(result) = !Z_LVAL_P(result);
 +      container = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
 +      if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +              HANDLE_EXCEPTION();
 +      }
 +      if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an array");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
  
 -static int ZEND_FASTCALL  ZEND_IS_EQUAL_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op2;
 -      zval *result = &EX_T(opline->result.var).tmp_var;
 +              HANDLE_EXCEPTION();
 +      }
  
 -      SAVE_OPLINE();
 -      ZVAL_BOOL(result, fast_equal_function(result,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC));
 +      dim = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +      do {
 +              if (IS_CV == IS_UNUSED || UNEXPECTED(Z_TYPE_P(container) != IS_ARRAY)) {
 +                      if (IS_CV != IS_UNUSED) {
 +                              ZVAL_DEREF(container);
 +                      }
 +                      if (IS_CV == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
 +                              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +                              zend_binary_assign_op_obj_dim(container, dim, value, UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL, binary_op);
 +                              break;
 +                      }
 +              }
  
 -static int ZEND_FASTCALL  ZEND_IS_NOT_EQUAL_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op2;
 -      zval *result = &EX_T(opline->result.var).tmp_var;
 +              zend_fetch_dimension_address_RW(&rv, container, dim, IS_CV);
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +              ZEND_ASSERT(Z_TYPE(rv) == IS_INDIRECT);
 +              var_ptr = Z_INDIRECT(rv);
  
 -      SAVE_OPLINE();
 -      ZVAL_BOOL(result, fast_not_equal_function(result,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC));
 +              if (UNEXPECTED(var_ptr == NULL)) {
 +                      zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +                      FREE_OP(free_op_data1);
  
 -static int ZEND_FASTCALL  ZEND_IS_SMALLER_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op2;
 -      zval *result = &EX_T(opline->result.var).tmp_var;
 +                      HANDLE_EXCEPTION();
 +              }
  
 -      SAVE_OPLINE();
 -      ZVAL_BOOL(result, fast_is_smaller_function(result,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC));
 +              if (UNEXPECTED(var_ptr == &EG(error_zval))) {
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                      }
 +              } else {
 +                      ZVAL_DEREF(var_ptr);
 +                      SEPARATE_ZVAL_NOREF(var_ptr);
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +                      binary_op(var_ptr, var_ptr, value);
  
 -static int ZEND_FASTCALL  ZEND_IS_SMALLER_OR_EQUAL_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op2;
 -      zval *result = &EX_T(opline->result.var).tmp_var;
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_COPY(EX_VAR(opline->result.var), var_ptr);
 +                      }
 +              }
 +      } while (0);
  
 -      SAVE_OPLINE();
 -      ZVAL_BOOL(result, fast_is_smaller_or_equal_function(result,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC));
 +      FREE_OP(free_op_data1);
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
  }
  
 -static int ZEND_FASTCALL  ZEND_BW_OR_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_helper_SPEC_CV_CV(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op2;
 +
 +      zval *var_ptr;
 +      zval *value;
  
        SAVE_OPLINE();
 -      bitwise_or_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
 +      value = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
 +      var_ptr = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +      if (IS_CV == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
 +              zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
  
 -static int ZEND_FASTCALL  ZEND_BW_AND_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op2;
 +              HANDLE_EXCEPTION();
 +      }
  
 -      SAVE_OPLINE();
 -      bitwise_and_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
 +      if (IS_CV == IS_VAR && UNEXPECTED(var_ptr == &EG(error_zval))) {
 +              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                      ZVAL_NULL(EX_VAR(opline->result.var));
 +              }
 +      } else {
 +              ZVAL_DEREF(var_ptr);
 +              SEPARATE_ZVAL_NOREF(var_ptr);
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +              binary_op(var_ptr, var_ptr, value);
  
 -static int ZEND_FASTCALL  ZEND_BW_XOR_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      USE_OPLINE
 -      zend_free_op free_op2;
 +              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                      ZVAL_COPY(EX_VAR(opline->result.var), var_ptr);
 +              }
 +      }
  
 -      SAVE_OPLINE();
 -      bitwise_xor_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_BOOL_XOR_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_ADD_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || (IS_CV != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op2;
 -
 -      SAVE_OPLINE();
 -      boolean_xor_function(&EX_T(opline->result.var).tmp_var,
 -              _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC),
 -              _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
  
 -      zval_dtor(free_op2.var);
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_CV(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_CV(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL zend_binary_assign_op_obj_helper_SPEC_CV_TMP(int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC), ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SUB_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || (IS_CV != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op2, free_op_data1;
 -      zval **object_ptr = _get_zval_ptr_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var TSRMLS_CC);
 -      zval *object;
 -      zval *property = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 -      zval *value = get_zval_ptr((opline+1)->op1_type, &(opline+1)->op1, execute_data, &free_op_data1, BP_VAR_R);
 -      int have_get_ptr = 0;
  
 -      if (IS_CV == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use string offset as an object");
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_CV(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -
 -      make_real_object(object_ptr TSRMLS_CC);
 -      object = *object_ptr;
 -
 -      if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 -              zend_error(E_WARNING, "Attempt to assign property of non-object");
 -              zval_dtor(free_op2.var);
 -              FREE_OP(free_op_data1);
 -
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -              }
 -      } else {
 -              /* here we are sure we are dealing with an object */
 -              if (1) {
 -                      MAKE_REAL_ZVAL_PTR(property);
 -              }
 -
 -              /* here property is a string */
 -              if (opline->extended_value == ZEND_ASSIGN_OBJ
 -                      && Z_OBJ_HT_P(object)->get_property_ptr_ptr) {
 -                      zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      if (zptr != NULL) {                     /* NULL means no success in getting PTR */
 -                              have_get_ptr = 1;
 -                              if (UNEXPECTED(*zptr == &EG(error_zval))) {
 -                                      if (RETURN_VALUE_USED(opline)) {
 -                                              PZVAL_LOCK(&EG(uninitialized_zval));
 -                                              EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -                                      }
 -                              } else {
 -                                      SEPARATE_ZVAL_IF_NOT_REF(zptr);
 -
 -                                      binary_op(*zptr, *zptr, value TSRMLS_CC);
 -                                      if (RETURN_VALUE_USED(opline)) {
 -                                              PZVAL_LOCK(*zptr);
 -                                              EX_T(opline->result.var).var.ptr = *zptr;
 -                                      }
 -                              }
 -                      }
 -              }
 -
 -              if (!have_get_ptr) {
 -                      zval *z = NULL;
 -
 -                      Z_ADDREF_P(object);
 -                      if (opline->extended_value == ZEND_ASSIGN_OBJ) {
 -                              if (Z_OBJ_HT_P(object)->read_property) {
 -                                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                              }
 -                      } else /* if (opline->extended_value == ZEND_ASSIGN_DIM) */ {
 -                              if (Z_OBJ_HT_P(object)->read_dimension) {
 -                                      z = Z_OBJ_HT_P(object)->read_dimension(object, property, BP_VAR_R TSRMLS_CC);
 -                              }
 -                      }
 -                      if (z) {
 -                              if (Z_TYPE_P(z) == IS_OBJECT && Z_OBJ_HT_P(z)->get) {
 -                                      zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 -
 -                                      if (Z_REFCOUNT_P(z) == 0) {
 -                                              GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                              zval_dtor(z);
 -                                              FREE_ZVAL(z);
 -                                      }
 -                                      z = value;
 -                              }
 -                              Z_ADDREF_P(z);
 -                              SEPARATE_ZVAL_IF_NOT_REF(&z);
 -                              binary_op(z, z, value TSRMLS_CC);
 -                              if (opline->extended_value == ZEND_ASSIGN_OBJ) {
 -                                      Z_OBJ_HT_P(object)->write_property(object, property, z, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                              } else /* if (opline->extended_value == ZEND_ASSIGN_DIM) */ {
 -                                      Z_OBJ_HT_P(object)->write_dimension(object, property, z TSRMLS_CC);
 -                              }
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      PZVAL_LOCK(z);
 -                                      EX_T(opline->result.var).var.ptr = z;
 -                              }
 -                              zval_ptr_dtor(&z);
 -                      } else {
 -                              zend_error(E_WARNING, "Attempt to assign property of non-object");
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                                      EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -                              }
 -                      }
 -                      zval_ptr_dtor(&object);
 -              }
 -
 -              if (1) {
 -                      zval_ptr_dtor(&property);
 -              } else {
 -                      zval_dtor(free_op2.var);
 -              }
 -              FREE_OP(free_op_data1);
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_CV(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -
 -      /* assign_obj has two opcodes! */
 -      CHECK_EXCEPTION();
 -      ZEND_VM_INC_OPCODE();
 -      ZEND_VM_NEXT_OPCODE();
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL zend_binary_assign_op_helper_SPEC_CV_TMP(int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC), ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_MUL_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || (IS_CV != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op2, free_op_data2, free_op_data1;
 -      zval **var_ptr;
 -      zval *value;
 -
 -      SAVE_OPLINE();
 -      switch (opline->extended_value) {
 -              case ZEND_ASSIGN_OBJ:
 -                      return zend_binary_assign_op_obj_helper_SPEC_CV_TMP(binary_op, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -                      break;
 -              case ZEND_ASSIGN_DIM: {
 -                              zval **container = _get_zval_ptr_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var TSRMLS_CC);
 -
 -                              if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
 -                                      zend_error_noreturn(E_ERROR, "Cannot use string offset as an array");
 -                              } else if (UNEXPECTED(Z_TYPE_PP(container) == IS_OBJECT)) {
 -                                      if (IS_CV == IS_VAR && !0) {
 -                                              Z_ADDREF_PP(container);  /* undo the effect of get_obj_zval_ptr_ptr() */
 -                                      }
 -                                      return zend_binary_assign_op_obj_helper_SPEC_CV_TMP(binary_op, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -                              } else {
 -                                      zval *dim = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
  
 -                                      zend_fetch_dimension_address(&EX_T((opline+1)->op2.var), container, dim, IS_TMP_VAR, BP_VAR_RW TSRMLS_CC);
 -                                      value = get_zval_ptr((opline+1)->op1_type, &(opline+1)->op1, execute_data, &free_op_data1, BP_VAR_R);
 -                                      var_ptr = _get_zval_ptr_ptr_var((opline+1)->op2.var, execute_data, &free_op_data2 TSRMLS_CC);
 -                              }
 -                      }
 -                      break;
 -              default:
 -                      value = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 -                      var_ptr = _get_zval_ptr_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var TSRMLS_CC);
 -                      /* do nothing */
 -                      break;
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_CV(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -
 -      if (UNEXPECTED(var_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot use assign-op operators with overloaded objects nor string offsets");
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_CV(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      if (UNEXPECTED(*var_ptr == &EG(error_zval))) {
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
 -              }
 -              zval_dtor(free_op2.var);
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_DIV_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -              CHECK_EXCEPTION();
 -              if (opline->extended_value == ZEND_ASSIGN_DIM) {
 -                      ZEND_VM_INC_OPCODE();
 -              }
 -              ZEND_VM_NEXT_OPCODE();
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_CV(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_CV(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      SEPARATE_ZVAL_IF_NOT_REF(var_ptr);
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_MOD_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -      if (UNEXPECTED(Z_TYPE_PP(var_ptr) == IS_OBJECT)
 -         && Z_OBJ_HANDLER_PP(var_ptr, get)
 -         && Z_OBJ_HANDLER_PP(var_ptr, set)) {
 -              /* proxy object */
 -              zval *objval = Z_OBJ_HANDLER_PP(var_ptr, get)(*var_ptr TSRMLS_CC);
 -              Z_ADDREF_P(objval);
 -              binary_op(objval, objval, value TSRMLS_CC);
 -              Z_OBJ_HANDLER_PP(var_ptr, set)(var_ptr, objval TSRMLS_CC);
 -              zval_ptr_dtor(&objval);
 -      } else {
 -              binary_op(*var_ptr, *var_ptr, value TSRMLS_CC);
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_CV(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -
 -      if (RETURN_VALUE_USED(opline)) {
 -              PZVAL_LOCK(*var_ptr);
 -              EX_T(opline->result.var).var.ptr = *var_ptr;
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_CV(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      zval_dtor(free_op2.var);
 -
 -      if (opline->extended_value == ZEND_ASSIGN_DIM) {
 -              FREE_OP(free_op_data1);
 -              FREE_OP_VAR_PTR(free_op_data2);
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -              CHECK_EXCEPTION();
 -              ZEND_VM_INC_OPCODE();
 -      } else {
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SL_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -              CHECK_EXCEPTION();
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_CV(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      ZEND_VM_NEXT_OPCODE();
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_CV(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_ADD_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SR_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_binary_assign_op_helper_SPEC_CV_TMP(add_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_SUB_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_CV_TMP(sub_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_CV(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_CV(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_MUL_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_CONCAT_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_binary_assign_op_helper_SPEC_CV_TMP(mul_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_DIV_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_CV_TMP(div_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_CV(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_CV(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_MOD_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_OR_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_binary_assign_op_helper_SPEC_CV_TMP(mod_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_SL_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_CV_TMP(shift_left_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_CV(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_CV(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_SR_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_AND_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_binary_assign_op_helper_SPEC_CV_TMP(shift_right_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_CONCAT_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_CV_TMP(concat_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_CV(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_CV(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_BW_OR_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_XOR_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_binary_assign_op_helper_SPEC_CV_TMP(bitwise_or_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_BW_AND_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_binary_assign_op_helper_SPEC_CV_TMP(bitwise_and_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_CV(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_CV(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_ASSIGN_BW_XOR_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_POW_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_binary_assign_op_helper_SPEC_CV_TMP(bitwise_xor_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +#if 0 || (IS_CV != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_CV(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_CV(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_CV(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL zend_pre_incdec_property_helper_SPEC_CV_TMP(incdec_t incdec_op, ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_pre_incdec_property_helper_SPEC_CV_CV(int inc ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op2;
 -      zval **object_ptr;
 +
        zval *object;
        zval *property;
 -      zval **retval;
 -      int have_get_ptr = 0;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      object_ptr = _get_zval_ptr_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var TSRMLS_CC);
 -      property = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 -      retval = &EX_T(opline->result.var).var.ptr;
 -
 -      if (IS_CV == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot increment/decrement overloaded objects nor string offsets");
 -      }
 -
 -      make_real_object(object_ptr TSRMLS_CC); /* this should modify object only if it's empty */
 -      object = *object_ptr;
 +      object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
  
 -      if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 -              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -              zval_dtor(free_op2.var);
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      *retval = &EG(uninitialized_zval);
 -              }
 +      if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
  
 -              CHECK_EXCEPTION();
 -              ZEND_VM_NEXT_OPCODE();
 +              HANDLE_EXCEPTION();
        }
  
 -      /* here we are sure we are dealing with an object */
 +      property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
  
 -      if (1) {
 -              MAKE_REAL_ZVAL_PTR(property);
 -      }
 +      if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
  
 -      if (Z_OBJ_HT_P(object)->get_property_ptr_ptr) {
 -              zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -              if (zptr != NULL) {                     /* NULL means no success in getting PTR */
 -                      have_get_ptr = 1;
 -                      if (UNEXPECTED(*zptr == &EG(error_zval))) {
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                                      *retval = &EG(uninitialized_zval);
 -                              }
 -                      } else {
 -                              SEPARATE_ZVAL_IF_NOT_REF(zptr);
 +              HANDLE_EXCEPTION();
 +      }
  
 -                              incdec_op(*zptr);
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      *retval = *zptr;
 -                                      PZVAL_LOCK(*retval);
 +      do {
 +              if (IS_CV != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
                                }
 +                              break;
                        }
                }
 -      }
 -
 -      if (!have_get_ptr) {
 -              if (Z_OBJ_HT_P(object)->read_property && Z_OBJ_HT_P(object)->write_property) {
 -                      zval *z;
  
 -                      Z_ADDREF_P(object);
 -                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -
 -                      if (UNEXPECTED(Z_TYPE_P(z) == IS_OBJECT) && Z_OBJ_HT_P(z)->get) {
 -                              zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
 +                      } else {
-                               ZVAL_DEREF(zptr);
-                               SEPARATE_ZVAL_NOREF(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      SEPARATE_ZVAL_NOREF(zptr);
 -                              if (Z_REFCOUNT_P(z) == 0) {
 -                                      GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                      zval_dtor(z);
 -                                      FREE_ZVAL(z);
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
++                              }
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
                                }
-                       }
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 -                              z = value;
                        }
 -                      Z_ADDREF_P(z);
 -                      SEPARATE_ZVAL_IF_NOT_REF(&z);
 -                      incdec_op(z);
 -                      *retval = z;
 -                      Z_OBJ_HT_P(object)->write_property(object, property, z, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      zval_ptr_dtor(&object);
 -                      SELECTIVE_PZVAL_LOCK(*retval, opline);
 -                      zval_ptr_dtor(&z);
                } else {
 -                      zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -                      if (RETURN_VALUE_USED(opline)) {
 -                              PZVAL_LOCK(&EG(uninitialized_zval));
 -                              *retval = &EG(uninitialized_zval);
 -                      }
 +                      zend_pre_incdec_overloaded_property(object, property, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
                }
 -      }
 +      } while (0);
  
 -      if (1) {
 -              zval_ptr_dtor(&property);
 -      } else {
 -              zval_dtor(free_op2.var);
 -      }
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_PRE_INC_OBJ_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_INC_OBJ_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_pre_incdec_property_helper_SPEC_CV_TMP(increment_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_CV_CV(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_PRE_DEC_OBJ_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_DEC_OBJ_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_pre_incdec_property_helper_SPEC_CV_TMP(decrement_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_CV_CV(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL zend_post_incdec_property_helper_SPEC_CV_TMP(incdec_t incdec_op, ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_post_incdec_property_helper_SPEC_CV_CV(int inc ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op2;
 -      zval **object_ptr;
 +
        zval *object;
        zval *property;
 -      zval *retval;
 -      int have_get_ptr = 0;
 +      zval *zptr;
  
        SAVE_OPLINE();
 -      object_ptr = _get_zval_ptr_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var TSRMLS_CC);
 -      property = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 -      retval = &EX_T(opline->result.var).tmp_var;
 -
 -      if (IS_CV == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot increment/decrement overloaded objects nor string offsets");
 -      }
 -
 -      make_real_object(object_ptr TSRMLS_CC); /* this should modify object only if it's empty */
 -      object = *object_ptr;
 +      object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
  
 -      if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 -              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -              zval_dtor(free_op2.var);
 -              ZVAL_NULL(retval);
 +      if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
  
 -              CHECK_EXCEPTION();
 -              ZEND_VM_NEXT_OPCODE();
 +              HANDLE_EXCEPTION();
        }
  
 -      /* here we are sure we are dealing with an object */
 -
 -      if (1) {
 -              MAKE_REAL_ZVAL_PTR(property);
 -      }
 +      property = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var);
  
 -      if (Z_OBJ_HT_P(object)->get_property_ptr_ptr) {
 -              zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -              if (zptr != NULL) {                     /* NULL means no success in getting PTR */
 -                      have_get_ptr = 1;
 -                      if (UNEXPECTED(*zptr == &EG(error_zval))) {
 -                              ZVAL_NULL(retval);
 -                      } else {
 -                              SEPARATE_ZVAL_IF_NOT_REF(zptr);
 +      if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
  
 -                              ZVAL_COPY_VALUE(retval, *zptr);
 -                              zendi_zval_copy_ctor(*retval);
 +              HANDLE_EXCEPTION();
 +      }
  
 -                              incdec_op(*zptr);
 +      do {
 +              if (IS_CV != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                              break;
                        }
                }
 -      }
 -
 -      if (!have_get_ptr) {
 -              if (Z_OBJ_HT_P(object)->read_property && Z_OBJ_HT_P(object)->write_property) {
 -                      zval *z, *z_copy;
  
 -                      Z_ADDREF_P(object);
 -                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      if (UNEXPECTED(Z_TYPE_P(z) == IS_OBJECT) && Z_OBJ_HT_P(z)->get) {
 -                              zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 +              /* here we are sure we are dealing with an object */
  
 -                              if (Z_REFCOUNT_P(z) == 0) {
 -                                      GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                      zval_dtor(z);
 -                                      FREE_ZVAL(z);
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
-                               }
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                      } else {
-                               ZVAL_DEREF(zptr);
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               zval_opt_copy_ctor(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      zval_opt_copy_ctor(zptr);
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
                                }
 -                              z = value;
                        }
 -                      ZVAL_COPY_VALUE(retval, z);
 -                      zendi_zval_copy_ctor(*retval);
 -                      ALLOC_ZVAL(z_copy);
 -                      INIT_PZVAL_COPY(z_copy, z);
 -                      zendi_zval_copy_ctor(*z_copy);
 -                      incdec_op(z_copy);
 -                      Z_ADDREF_P(z);
 -                      Z_OBJ_HT_P(object)->write_property(object, property, z_copy, ((IS_TMP_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      zval_ptr_dtor(&object);
 -                      zval_ptr_dtor(&z_copy);
 -                      zval_ptr_dtor(&z);
                } else {
 -                      zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -                      ZVAL_NULL(retval);
 +                      zend_post_incdec_overloaded_property(object, property, ((IS_CV == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, EX_VAR(opline->result.var));
                }
 -      }
 +      } while (0);
  
 -      if (1) {
 -              zval_ptr_dtor(&property);
 -      } else {
 -              zval_dtor(free_op2.var);
 -      }
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_POST_INC_OBJ_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_INC_OBJ_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_post_incdec_property_helper_SPEC_CV_TMP(increment_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_CV_CV(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_POST_DEC_OBJ_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_DEC_OBJ_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_post_incdec_property_helper_SPEC_CV_TMP(decrement_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_CV_CV(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_DIM_R_SPEC_CV_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_DIM_R_SPEC_CV_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
 -      zend_free_op free_op2;
 +
        zval *container;
  
        SAVE_OPLINE();
@@@ -38388,589 -36734,387 +38484,601 @@@ static ZEND_OPCODE_HANDLER_RET ZEND_FAS
  {
        USE_OPLINE
        zend_free_op free_op2;
 -      zval **object_ptr;
 -      zval *object;
 -      zval *property;
 -      zval **retval;
 -      int have_get_ptr = 0;
 +      zval *op1, *op2;
  
        SAVE_OPLINE();
 -      object_ptr = _get_zval_ptr_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var TSRMLS_CC);
 -      property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 -      retval = &EX_T(opline->result.var).var.ptr;
 +      op1 = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var);
 +      op2 = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
 +      boolean_xor_function(EX_VAR(opline->result.var), op1, op2);
  
 -      if (IS_CV == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot increment/decrement overloaded objects nor string offsets");
 -      }
 +      zval_ptr_dtor_nogc(free_op2);
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
 +}
  
 -      make_real_object(object_ptr TSRMLS_CC); /* this should modify object only if it's empty */
 -      object = *object_ptr;
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_obj_helper_SPEC_CV_TMPVAR(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
 +{
 +      USE_OPLINE
 +      zend_free_op free_op2, free_op_data1;
 +      zval *object;
 +      zval *property;
 +      zval *value;
 +      zval *zptr;
  
 -      if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 -              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -              zval_ptr_dtor_nogc(&free_op2.var);
 -              if (RETURN_VALUE_USED(opline)) {
 -                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                      *retval = &EG(uninitialized_zval);
 -              }
 +      SAVE_OPLINE();
 +      object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
  
 -              CHECK_EXCEPTION();
 -              ZEND_VM_NEXT_OPCODE();
 +      if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
        }
  
 -      /* here we are sure we are dealing with an object */
 +      property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
  
 -      if (0) {
 -              MAKE_REAL_ZVAL_PTR(property);
 +      if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an object");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
        }
  
 -      if (Z_OBJ_HT_P(object)->get_property_ptr_ptr) {
 -              zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -              if (zptr != NULL) {                     /* NULL means no success in getting PTR */
 -                      have_get_ptr = 1;
 -                      if (UNEXPECTED(*zptr == &EG(error_zval))) {
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      PZVAL_LOCK(&EG(uninitialized_zval));
 -                                      *retval = &EG(uninitialized_zval);
 -                              }
 -                      } else {
 -                              SEPARATE_ZVAL_IF_NOT_REF(zptr);
 +      do {
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
  
 -                              incdec_op(*zptr);
 -                              if (RETURN_VALUE_USED(opline)) {
 -                                      *retval = *zptr;
 -                                      PZVAL_LOCK(*retval);
 +              if (IS_CV != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to assign property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
                                }
 +                              break;
                        }
                }
 -      }
  
 -      if (!have_get_ptr) {
 -              if (Z_OBJ_HT_P(object)->read_property && Z_OBJ_HT_P(object)->write_property) {
 -                      zval *z;
 -
 -                      Z_ADDREF_P(object);
 -                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((IS_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -
 -                      if (UNEXPECTED(Z_TYPE_P(z) == IS_OBJECT) && Z_OBJ_HT_P(z)->get) {
 -                              zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
++                              }
++                      } else {
++                              ZVAL_DEREF(zptr);
++                              SEPARATE_ZVAL_NOREF(zptr);
  
-                       ZVAL_DEREF(zptr);
-                       SEPARATE_ZVAL_NOREF(zptr);
-                       binary_op(zptr, zptr, value);
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 -                              if (Z_REFCOUNT_P(z) == 0) {
 -                                      GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                      zval_dtor(z);
 -                                      FREE_ZVAL(z);
++                              binary_op(zptr, zptr, value);
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
+                               }
 -                              z = value;
                        }
 -                      Z_ADDREF_P(z);
 -                      SEPARATE_ZVAL_IF_NOT_REF(&z);
 -                      incdec_op(z);
 -                      *retval = z;
 -                      Z_OBJ_HT_P(object)->write_property(object, property, z, ((IS_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      zval_ptr_dtor(&object);
 -                      SELECTIVE_PZVAL_LOCK(*retval, opline);
 -                      zval_ptr_dtor(&z);
                } else {
 -                      zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -                      if (RETURN_VALUE_USED(opline)) {
 -                              PZVAL_LOCK(&EG(uninitialized_zval));
 -                              *retval = &EG(uninitialized_zval);
 -                      }
 +                      zend_assign_op_overloaded_property(object, property, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), value, binary_op, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
                }
 -      }
 -
 -      if (0) {
 -              zval_ptr_dtor(&property);
 -      } else {
 -              zval_ptr_dtor_nogc(&free_op2.var);
 -      }
 -
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 -}
 +      } while (0);
  
 -static int ZEND_FASTCALL  ZEND_PRE_INC_OBJ_SPEC_CV_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_pre_incdec_property_helper_SPEC_CV_VAR(increment_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 -}
 +      FREE_OP(free_op_data1);
 +      zval_ptr_dtor_nogc(free_op2);
  
 -static int ZEND_FASTCALL  ZEND_PRE_DEC_OBJ_SPEC_CV_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 -{
 -      return zend_pre_incdec_property_helper_SPEC_CV_VAR(decrement_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      /* assign_obj has two opcodes! */
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
  }
  
 -static int ZEND_FASTCALL zend_post_incdec_property_helper_SPEC_CV_VAR(incdec_t incdec_op, ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
 -      zend_free_op free_op2;
 -      zval **object_ptr;
 -      zval *object;
 -      zval *property;
 -      zval *retval;
 -      int have_get_ptr = 0;
 +      zend_free_op free_op2, free_op_data1;
 +      zval *var_ptr, rv;
 +      zval *value, *container, *dim;
  
        SAVE_OPLINE();
 -      object_ptr = _get_zval_ptr_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var TSRMLS_CC);
 -      property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
 -      retval = &EX_T(opline->result.var).tmp_var;
 -
 -      if (IS_CV == IS_VAR && UNEXPECTED(object_ptr == NULL)) {
 -              zend_error_noreturn(E_ERROR, "Cannot increment/decrement overloaded objects nor string offsets");
 +      container = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
 +      if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(container) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
 +      }
 +      if (IS_CV == IS_VAR && UNEXPECTED(container == NULL)) {
 +              zend_throw_error(NULL, "Cannot use string offset as an array");
 +              FREE_UNFETCHED_OP((opline+1)->op1_type, (opline+1)->op1.var);
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
        }
  
 -      make_real_object(object_ptr TSRMLS_CC); /* this should modify object only if it's empty */
 -      object = *object_ptr;
 +      dim = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
  
 -      if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 -              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -              zval_ptr_dtor_nogc(&free_op2.var);
 -              ZVAL_NULL(retval);
 +      do {
 +              if (IS_CV == IS_UNUSED || UNEXPECTED(Z_TYPE_P(container) != IS_ARRAY)) {
 +                      if (IS_CV != IS_UNUSED) {
 +                              ZVAL_DEREF(container);
 +                      }
 +                      if (IS_CV == IS_UNUSED || EXPECTED(Z_TYPE_P(container) == IS_OBJECT)) {
 +                              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +                              zend_binary_assign_op_obj_dim(container, dim, value, UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL, binary_op);
 +                              break;
 +                      }
 +              }
  
 -              CHECK_EXCEPTION();
 -              ZEND_VM_NEXT_OPCODE();
 -      }
 +              zend_fetch_dimension_address_RW(&rv, container, dim, (IS_TMP_VAR|IS_VAR));
 +              value = get_zval_ptr_r((opline+1)->op1_type, (opline+1)->op1, execute_data, &free_op_data1);
 +              ZEND_ASSERT(Z_TYPE(rv) == IS_INDIRECT);
 +              var_ptr = Z_INDIRECT(rv);
  
 -      /* here we are sure we are dealing with an object */
 +              if (UNEXPECTED(var_ptr == NULL)) {
 +                      zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
 +                      zval_ptr_dtor_nogc(free_op2);
 +                      FREE_OP(free_op_data1);
  
 -      if (0) {
 -              MAKE_REAL_ZVAL_PTR(property);
 -      }
 +                      HANDLE_EXCEPTION();
 +              }
  
 -      if (Z_OBJ_HT_P(object)->get_property_ptr_ptr) {
 -              zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((IS_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -              if (zptr != NULL) {                     /* NULL means no success in getting PTR */
 -                      have_get_ptr = 1;
 -                      if (UNEXPECTED(*zptr == &EG(error_zval))) {
 -                              ZVAL_NULL(retval);
 -                      } else {
 -                              SEPARATE_ZVAL_IF_NOT_REF(zptr);
 +              if (UNEXPECTED(var_ptr == &EG(error_zval))) {
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                      }
 +              } else {
 +                      ZVAL_DEREF(var_ptr);
 +                      SEPARATE_ZVAL_NOREF(var_ptr);
  
 -                              ZVAL_COPY_VALUE(retval, *zptr);
 -                              zendi_zval_copy_ctor(*retval);
 +                      binary_op(var_ptr, var_ptr, value);
  
 -                              incdec_op(*zptr);
 +                      if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                              ZVAL_COPY(EX_VAR(opline->result.var), var_ptr);
                        }
                }
 -      }
 +      } while (0);
  
 -      if (!have_get_ptr) {
 -              if (Z_OBJ_HT_P(object)->read_property && Z_OBJ_HT_P(object)->write_property) {
 -                      zval *z, *z_copy;
 +      zval_ptr_dtor_nogc(free_op2);
 +      FREE_OP(free_op_data1);
  
 -                      Z_ADDREF_P(object);
 -                      z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((IS_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      if (UNEXPECTED(Z_TYPE_P(z) == IS_OBJECT) && Z_OBJ_HT_P(z)->get) {
 -                              zval *value = Z_OBJ_HT_P(z)->get(z TSRMLS_CC);
 +      ZEND_VM_NEXT_OPCODE_EX(1, 2);
 +}
  
 -                              if (Z_REFCOUNT_P(z) == 0) {
 -                                      GC_REMOVE_ZVAL_FROM_BUFFER(z);
 -                                      zval_dtor(z);
 -                                      FREE_ZVAL(z);
 -                              }
 -                              z = value;
 -                      }
 -                      ZVAL_COPY_VALUE(retval, z);
 -                      zendi_zval_copy_ctor(*retval);
 -                      ALLOC_ZVAL(z_copy);
 -                      INIT_PZVAL_COPY(z_copy, z);
 -                      zendi_zval_copy_ctor(*z_copy);
 -                      incdec_op(z_copy);
 -                      Z_ADDREF_P(z);
 -                      Z_OBJ_HT_P(object)->write_property(object, property, z_copy, ((IS_VAR == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
 -                      zval_ptr_dtor(&object);
 -                      zval_ptr_dtor(&z_copy);
 -                      zval_ptr_dtor(&z);
 -              } else {
 -                      zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 -                      ZVAL_NULL(retval);
 -              }
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_binary_assign_op_helper_SPEC_CV_TMPVAR(binary_op_type binary_op ZEND_OPCODE_HANDLER_ARGS_DC)
 +{
 +      USE_OPLINE
 +      zend_free_op free_op2;
 +      zval *var_ptr;
 +      zval *value;
 +
 +      SAVE_OPLINE();
 +      value = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
 +      var_ptr = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
 +
 +      if (IS_CV == IS_VAR && UNEXPECTED(var_ptr == NULL)) {
 +              zend_throw_error(NULL, "Cannot use assign-op operators with overloaded objects nor string offsets");
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
        }
  
 -      if (0) {
 -              zval_ptr_dtor(&property);
 +      if (IS_CV == IS_VAR && UNEXPECTED(var_ptr == &EG(error_zval))) {
 +              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                      ZVAL_NULL(EX_VAR(opline->result.var));
 +              }
        } else {
 -              zval_ptr_dtor_nogc(&free_op2.var);
 +              ZVAL_DEREF(var_ptr);
 +              SEPARATE_ZVAL_NOREF(var_ptr);
 +
 +              binary_op(var_ptr, var_ptr, value);
 +
 +              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                      ZVAL_COPY(EX_VAR(opline->result.var), var_ptr);
 +              }
        }
  
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +      zval_ptr_dtor_nogc(free_op2);
 +
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_POST_INC_OBJ_SPEC_CV_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_ADD_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_post_incdec_property_helper_SPEC_CV_VAR(increment_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_TMPVAR(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_TMPVAR(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(add_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_POST_DEC_OBJ_SPEC_CV_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SUB_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_post_incdec_property_helper_SPEC_CV_VAR(decrement_function, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_TMPVAR(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_TMPVAR(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(sub_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL zend_fetch_var_address_helper_SPEC_CV_VAR(int type, ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_MUL_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
        USE_OPLINE
 -      zend_free_op free_op1;
 -      zval *varname;
 -      zval **retval;
 -      zval tmp_varname;
 -      HashTable *target_symbol_table;
 -      ulong hash_value;
  
 -      SAVE_OPLINE();
 -      varname = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op1.var TSRMLS_CC);
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_TMPVAR(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_TMPVAR(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(mul_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      if (IS_CV != IS_CONST && UNEXPECTED(Z_TYPE_P(varname) != IS_STRING)) {
 -              ZVAL_COPY_VALUE(&tmp_varname, varname);
 -              zval_copy_ctor(&tmp_varname);
 -              Z_SET_REFCOUNT(tmp_varname, 1);
 -              Z_UNSET_ISREF(tmp_varname);
 -              convert_to_string(&tmp_varname);
 -              varname = &tmp_varname;
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_DIV_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_TMPVAR(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_TMPVAR(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(div_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -      if (IS_VAR != IS_UNUSED) {
 -              zend_class_entry *ce;
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_MOD_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
  
 -              if (IS_VAR == IS_CONST) {
 -                      if (CACHED_PTR(opline->op2.literal->cache_slot)) {
 -                              ce = CACHED_PTR(opline->op2.literal->cache_slot);
 -                      } else {
 -                              ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, 0 TSRMLS_CC);
 -                              if (UNEXPECTED(ce == NULL)) {
 -                                      if (IS_CV != IS_CONST && varname == &tmp_varname) {
 -                                              zval_dtor(&tmp_varname);
 -                                      }
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_TMPVAR(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_TMPVAR(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(mod_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -                                      CHECK_EXCEPTION();
 -                                      ZEND_VM_NEXT_OPCODE();
 -                              }
 -                              CACHE_PTR(opline->op2.literal->cache_slot, ce);
 -                      }
 -              } else {
 -                      ce = EX_T(opline->op2.var).class_entry;
 -              }
 -              retval = zend_std_get_static_property(ce, Z_STRVAL_P(varname), Z_STRLEN_P(varname), 0, ((IS_CV == IS_CONST) ? opline->op1.literal : NULL) TSRMLS_CC);
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SL_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
  
 -      } else {
 -              target_symbol_table = zend_get_target_symbol_table(opline->extended_value & ZEND_FETCH_TYPE_MASK TSRMLS_CC);
 -/*
 -              if (!target_symbol_table) {
 -                      CHECK_EXCEPTION();
 -                      ZEND_VM_NEXT_OPCODE();
 -              }
 -*/
 -              if (IS_CV == IS_CONST) {
 -                      hash_value = Z_HASH_P(varname);
 -              } else {
 -                      hash_value = str_hash(Z_STRVAL_P(varname), Z_STRLEN_P(varname));
 -              }
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_TMPVAR(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_TMPVAR(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(shift_left_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -              if (zend_hash_quick_find(target_symbol_table, Z_STRVAL_P(varname), Z_STRLEN_P(varname)+1, hash_value, (void **) &retval) == FAILURE) {
 -                      switch (type) {
 -                              case BP_VAR_R:
 -                              case BP_VAR_UNSET:
 -                                      zend_error(E_NOTICE,"Undefined variable: %s", Z_STRVAL_P(varname));
 -                                      /* break missing intentionally */
 -                              case BP_VAR_IS:
 -                                      retval = &EG(uninitialized_zval_ptr);
 -                                      break;
 -                              case BP_VAR_RW:
 -                                      zend_error(E_NOTICE,"Undefined variable: %s", Z_STRVAL_P(varname));
 -                                      /* break missing intentionally */
 -                              case BP_VAR_W:
 -                                      Z_ADDREF_P(&EG(uninitialized_zval));
 -                                      zend_hash_quick_update(target_symbol_table, Z_STRVAL_P(varname), Z_STRLEN_P(varname)+1, hash_value, &EG(uninitialized_zval_ptr), sizeof(zval *), (void **) &retval);
 -                                      break;
 -                              EMPTY_SWITCH_DEFAULT_CASE()
 -                      }
 -              }
 -              switch (opline->extended_value & ZEND_FETCH_TYPE_MASK) {
 -                      case ZEND_FETCH_GLOBAL:
 -                              if (IS_CV != IS_TMP_VAR) {
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_SR_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
  
 -                              }
 -                              break;
 -                      case ZEND_FETCH_LOCAL:
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_TMPVAR(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_TMPVAR(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(shift_right_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -                              break;
 -                      case ZEND_FETCH_STATIC:
 -                              zval_update_constant(retval, 1 TSRMLS_CC);
 -                              break;
 -                      case ZEND_FETCH_GLOBAL_LOCK:
 -                              if (IS_CV == IS_VAR && !free_op1.var) {
 -                                      PZVAL_LOCK(*EX_T(opline->op1.var).var.ptr_ptr);
 -                              }
 -                              break;
 -              }
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_CONCAT_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_TMPVAR(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_TMPVAR(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(concat_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_OR_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
  
 -      if (IS_CV != IS_CONST && varname == &tmp_varname) {
 -              zval_dtor(&tmp_varname);
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_TMPVAR(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      if (opline->extended_value & ZEND_FETCH_MAKE_REF) {
 -              SEPARATE_ZVAL_TO_MAKE_IS_REF(retval);
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_TMPVAR(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      PZVAL_LOCK(*retval);
 -      switch (type) {
 -              case BP_VAR_R:
 -              case BP_VAR_IS:
 -                      EX_T(opline->result.var).var.ptr = *retval;
 -                      break;
 -              case BP_VAR_UNSET: {
 -                      zend_free_op free_res;
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(bitwise_or_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
  
 -                      PZVAL_UNLOCK(*retval, &free_res);
 -                      if (retval != &EG(uninitialized_zval_ptr)) {
 -                              SEPARATE_ZVAL_IF_NOT_REF(retval);
 -                      }
 -                      PZVAL_LOCK(*retval);
 -                      FREE_OP_VAR_PTR(free_res);
 -              }
 -              /* break missing intentionally */
 -              default:
 -                      EX_T(opline->result.var).var.ptr_ptr = retval;
 -                      break;
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_AND_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_TMPVAR(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
        }
 -      CHECK_EXCEPTION();
 -      ZEND_VM_NEXT_OPCODE();
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_TMPVAR(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(bitwise_and_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
 +
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_BW_XOR_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_TMPVAR(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_TMPVAR(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(bitwise_xor_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
 +}
 +
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_ASSIGN_POW_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +{
 +#if 0 || ((IS_TMP_VAR|IS_VAR) != IS_UNUSED)
 +      USE_OPLINE
 +
 +# if 0 || (IS_CV != IS_UNUSED)
 +      if (EXPECTED(opline->extended_value == 0)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_helper_SPEC_CV_TMPVAR(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +# endif
 +      if (EXPECTED(opline->extended_value == ZEND_ASSIGN_DIM)) {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      } else /* if (EXPECTED(opline->extended_value == ZEND_ASSIGN_OBJ)) */ {
 +              ZEND_VM_TAIL_CALL(zend_binary_assign_op_obj_helper_SPEC_CV_TMPVAR(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +      }
 +#else
 +      ZEND_VM_TAIL_CALL(zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(pow_function ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
 +#endif
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_R_SPEC_CV_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_pre_incdec_property_helper_SPEC_CV_TMPVAR(int inc ZEND_OPCODE_HANDLER_ARGS_DC)
  {
 -      return zend_fetch_var_address_helper_SPEC_CV_VAR(BP_VAR_R, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      USE_OPLINE
 +      zend_free_op free_op2;
 +      zval *object;
 +      zval *property;
 +      zval *zptr;
 +
 +      SAVE_OPLINE();
 +      object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
 +
 +      if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
 +      }
 +
 +      property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
 +
 +      if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
 +      }
 +
 +      do {
 +              if (IS_CV != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
 +                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
 +                              break;
 +                      }
 +              }
 +
 +              /* here we are sure we are dealing with an object */
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_NULL(EX_VAR(opline->result.var));
 +                              }
 +                      } else {
-                               ZVAL_DEREF(zptr);
-                               SEPARATE_ZVAL_NOREF(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
-                                       decrement_function(zptr);
++                                      ZVAL_DEREF(zptr);
++                                      SEPARATE_ZVAL_NOREF(zptr);
++
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
++                              }
++                              if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
++                                      ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 +                              }
-                       }
-                       if (UNEXPECTED(RETURN_VALUE_USED(opline))) {
-                               ZVAL_COPY(EX_VAR(opline->result.var), zptr);
 +                      }
 +              } else {
 +                      zend_pre_incdec_overloaded_property(object, property, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, (UNEXPECTED(RETURN_VALUE_USED(opline)) ? EX_VAR(opline->result.var) : NULL));
 +              }
 +      } while (0);
 +
 +      zval_ptr_dtor_nogc(free_op2);
 +
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_W_SPEC_CV_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_INC_OBJ_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_fetch_var_address_helper_SPEC_CV_VAR(BP_VAR_W, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_CV_TMPVAR(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_RW_SPEC_CV_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_PRE_DEC_OBJ_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_fetch_var_address_helper_SPEC_CV_VAR(BP_VAR_RW, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_pre_incdec_property_helper_SPEC_CV_TMPVAR(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_FUNC_ARG_SPEC_CV_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_post_incdec_property_helper_SPEC_CV_TMPVAR(int inc ZEND_OPCODE_HANDLER_ARGS_DC)
  {
        USE_OPLINE
-                       if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               if (inc) {
-                                       fast_long_increment_function(zptr);
-                               } else {
-                                       fast_long_decrement_function(zptr);
-                               }
 +      zend_free_op free_op2;
 +      zval *object;
 +      zval *property;
 +      zval *zptr;
 +
 +      SAVE_OPLINE();
 +      object = _get_zval_ptr_cv_BP_VAR_RW(execute_data, opline->op1.var);
 +
 +      if (IS_CV == IS_UNUSED && UNEXPECTED(Z_OBJ_P(object) == NULL)) {
 +              zend_throw_error(NULL, "Using $this when not in object context");
 +              zval_ptr_dtor_nogc(EX_VAR(opline->op2.var));
 +              HANDLE_EXCEPTION();
 +      }
 +
 +      property = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2);
 +
 +      if (IS_CV == IS_VAR && UNEXPECTED(object == NULL)) {
 +              zend_throw_error(NULL, "Cannot increment/decrement overloaded objects nor string offsets");
 +              zval_ptr_dtor_nogc(free_op2);
 +              HANDLE_EXCEPTION();
 +      }
 +
 +      do {
 +              if (IS_CV != IS_UNUSED && UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) {
 +                      ZVAL_DEREF(object);
 +                      if (UNEXPECTED(!make_real_object(object))) {
 +                              zend_error(E_WARNING, "Attempt to increment/decrement property of non-object");
 +                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                              break;
 +                      }
 +              }
 +
 +              /* here we are sure we are dealing with an object */
 +
 +              if (EXPECTED(Z_OBJ_HT_P(object)->get_property_ptr_ptr)
 +                      && EXPECTED((zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL))) != NULL)) {
-                               ZVAL_DEREF(zptr);
-                               ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
-                               zval_opt_copy_ctor(zptr);
-                               if (inc) {
-                                       increment_function(zptr);
++                      if (UNEXPECTED(zptr == &EG(error_zval))) {
++                              ZVAL_NULL(EX_VAR(opline->result.var));
 +                      } else {
-                                       decrement_function(zptr);
++                              if (EXPECTED(Z_TYPE_P(zptr) == IS_LONG)) {
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      if (inc) {
++                                              fast_long_increment_function(zptr);
++                                      } else {
++                                              fast_long_decrement_function(zptr);
++                                      }
 +                              } else {
++                                      ZVAL_DEREF(zptr);
++                                      ZVAL_COPY_VALUE(EX_VAR(opline->result.var), zptr);
++                                      zval_opt_copy_ctor(zptr);
++                                      if (inc) {
++                                              increment_function(zptr);
++                                      } else {
++                                              decrement_function(zptr);
++                                      }
 +                              }
 +                      }
 +              } else {
 +                      zend_post_incdec_overloaded_property(object, property, (((IS_TMP_VAR|IS_VAR) == IS_CONST) ? CACHE_ADDR(Z_CACHE_SLOT_P(property)) : NULL), inc, EX_VAR(opline->result.var));
 +              }
 +      } while (0);
  
 -      return zend_fetch_var_address_helper_SPEC_CV_VAR(zend_is_by_ref_func_arg_fetch(opline, EX(call) TSRMLS_CC) ? BP_VAR_W : BP_VAR_R, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      zval_ptr_dtor_nogc(free_op2);
 +
 +      ZEND_VM_NEXT_OPCODE_CHECK_EXCEPTION();
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_UNSET_SPEC_CV_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_INC_OBJ_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_fetch_var_address_helper_SPEC_CV_VAR(BP_VAR_UNSET, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_CV_TMPVAR(1 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_IS_SPEC_CV_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_POST_DEC_OBJ_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
 -      return zend_fetch_var_address_helper_SPEC_CV_VAR(BP_VAR_IS, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 +      ZEND_VM_TAIL_CALL(zend_post_incdec_property_helper_SPEC_CV_TMPVAR(0 ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_CC));
  }
  
 -static int ZEND_FASTCALL  ZEND_FETCH_DIM_R_SPEC_CV_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 +static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FETCH_DIM_R_SPEC_CV_TMPVAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
        USE_OPLINE
        zend_free_op free_op2;
index f8c715284f7e3326657f834c2904ab4d0d1677d2,1e45b03fcc644f7703f3f1cb9089b9cb37abf048..443a42cca31688376e62a5ce26e5dd2b48452fea
@@@ -574,9 -542,9 +574,9 @@@ yy2
        yych = *(YYMARKER = ++YYCURSOR);
        if (yych == ':') goto yy95;
  yy3:
- #line 873 "ext/standard/var_unserializer.re"
 -#line 851 "ext/standard/var_unserializer.re"
++#line 884 "ext/standard/var_unserializer.re"
        { return 0; }
 -#line 548 "ext/standard/var_unserializer.c"
 +#line 580 "ext/standard/var_unserializer.c"
  yy4:
        yych = *(YYMARKER = ++YYCURSOR);
        if (yych == ':') goto yy89;
@@@ -619,13 -587,13 +619,13 @@@ yy13
        goto yy3;
  yy14:
        ++YYCURSOR;
- #line 867 "ext/standard/var_unserializer.re"
 -#line 845 "ext/standard/var_unserializer.re"
++#line 878 "ext/standard/var_unserializer.re"
        {
        /* this is the case where we have less data than planned */
 -      php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Unexpected end of serialized data");
 +      php_error_docref(NULL, E_NOTICE, "Unexpected end of serialized data");
        return 0; /* not sure if it should be 0 or 1 here? */
  }
 -#line 597 "ext/standard/var_unserializer.c"
 +#line 629 "ext/standard/var_unserializer.c"
  yy16:
        yych = *++YYCURSOR;
        goto yy3;
@@@ -655,13 -623,13 +655,13 @@@ yy20
        yych = *++YYCURSOR;
        if (yych != '"') goto yy18;
        ++YYCURSOR;
- #line 722 "ext/standard/var_unserializer.re"
 -#line 698 "ext/standard/var_unserializer.re"
++#line 733 "ext/standard/var_unserializer.re"
        {
        size_t len, len2, len3, maxlen;
 -      long elements;
 -      char *class_name;
 +      zend_long elements;
 +      char *str;
 +      zend_string *class_name;
        zend_class_entry *ce;
 -      zend_class_entry **pce;
        int incomplete_class = 0;
  
        int custom_object = 0;
@@@ -825,7 -795,7 +825,7 @@@ yy27
        yych = *++YYCURSOR;
        if (yych != '"') goto yy18;
        ++YYCURSOR;
- #line 715 "ext/standard/var_unserializer.re"
 -#line 689 "ext/standard/var_unserializer.re"
++#line 726 "ext/standard/var_unserializer.re"
        {
      if (!var_hash) return 0;
  
@@@ -853,9 -825,9 +853,9 @@@ yy34
        yych = *++YYCURSOR;
        if (yych != '{') goto yy18;
        ++YYCURSOR;
- #line 691 "ext/standard/var_unserializer.re"
 -#line 668 "ext/standard/var_unserializer.re"
++#line 702 "ext/standard/var_unserializer.re"
        {
 -      long elements = parse_iv(start + 2);
 +      zend_long elements = parse_iv(start + 2);
        /* use iv() not uiv() in order to check data range */
        *p = YYCURSOR;
      if (!var_hash) return 0;
@@@ -898,10 -867,10 +898,10 @@@ yy41
        yych = *++YYCURSOR;
        if (yych != '"') goto yy18;
        ++YYCURSOR;
- #line 663 "ext/standard/var_unserializer.re"
 -#line 633 "ext/standard/var_unserializer.re"
++#line 668 "ext/standard/var_unserializer.re"
        {
        size_t len, maxlen;
 -      char *str;
 +      zend_string *str;
  
        len = parse_uiv(start + 2);
        maxlen = max - YYCURSOR;
        YYCURSOR += 2;
        *p = YYCURSOR;
  
 -      INIT_PZVAL(*rval);
 -      ZVAL_STRINGL(*rval, str, len, 0);
 +      ZVAL_STR(rval, str);
        return 1;
  }
- #line 930 "ext/standard/var_unserializer.c"
 -#line 906 "ext/standard/var_unserializer.c"
++#line 936 "ext/standard/var_unserializer.c"
  yy46:
        yych = *++YYCURSOR;
        if (yych == '+') goto yy47;
@@@ -971,10 -952,11 +982,10 @@@ yy48
        YYCURSOR += 2;
        *p = YYCURSOR;
  
 -      INIT_PZVAL(*rval);
 -      ZVAL_STRINGL(*rval, str, len, 1);
 +      ZVAL_STRINGL(rval, str, len);
        return 1;
  }
- #line 978 "ext/standard/var_unserializer.c"
 -#line 960 "ext/standard/var_unserializer.c"
++#line 989 "ext/standard/var_unserializer.c"
  yy53:
        yych = *++YYCURSOR;
        if (yych <= '/') {
@@@ -1068,10 -1050,11 +1079,10 @@@ yy63
  use_double:
  #endif
        *p = YYCURSOR;
 -      INIT_PZVAL(*rval);
 -      ZVAL_DOUBLE(*rval, zend_strtod((const char *)start + 2, NULL));
 +      ZVAL_DOUBLE(rval, zend_strtod((const char *)start + 2, NULL));
        return 1;
  }
- #line 1075 "ext/standard/var_unserializer.c"
 -#line 1058 "ext/standard/var_unserializer.c"
++#line 1086 "ext/standard/var_unserializer.c"
  yy65:
        yych = *++YYCURSOR;
        if (yych <= ',') {
@@@ -1146,7 -1128,7 +1157,7 @@@ yy73
  
        return 1;
  }
- #line 1150 "ext/standard/var_unserializer.c"
 -#line 1132 "ext/standard/var_unserializer.c"
++#line 1161 "ext/standard/var_unserializer.c"
  yy76:
        yych = *++YYCURSOR;
        if (yych == 'N') goto yy73;
@@@ -1196,10 -1178,11 +1207,10 @@@ yy79
        }
  #endif
        *p = YYCURSOR;
 -      INIT_PZVAL(*rval);
 -      ZVAL_LONG(*rval, parse_iv(start + 2));
 +      ZVAL_LONG(rval, parse_iv(start + 2));
        return 1;
  }
- #line 1203 "ext/standard/var_unserializer.c"
 -#line 1186 "ext/standard/var_unserializer.c"
++#line 1214 "ext/standard/var_unserializer.c"
  yy83:
        yych = *++YYCURSOR;
        if (yych <= '/') goto yy18;
        yych = *++YYCURSOR;
        if (yych != ';') goto yy18;
        ++YYCURSOR;
 -#line 541 "ext/standard/var_unserializer.re"
 +#line 579 "ext/standard/var_unserializer.re"
        {
        *p = YYCURSOR;
 -      INIT_PZVAL(*rval);
 -      ZVAL_BOOL(*rval, parse_iv(start + 2));
 +      ZVAL_BOOL(rval, parse_iv(start + 2));
        return 1;
  }
- #line 1217 "ext/standard/var_unserializer.c"
 -#line 1201 "ext/standard/var_unserializer.c"
++#line 1228 "ext/standard/var_unserializer.c"
  yy87:
        ++YYCURSOR;
 -#line 534 "ext/standard/var_unserializer.re"
 +#line 573 "ext/standard/var_unserializer.re"
        {
        *p = YYCURSOR;
 -      INIT_PZVAL(*rval);
 -      ZVAL_NULL(*rval);
 +      ZVAL_NULL(rval);
        return 1;
  }
- #line 1226 "ext/standard/var_unserializer.c"
 -#line 1211 "ext/standard/var_unserializer.c"
++#line 1237 "ext/standard/var_unserializer.c"
  yy89:
        yych = *++YYCURSOR;
        if (yych <= ',') {
@@@ -1270,7 -1253,7 +1281,7 @@@ yy91
  
        return 1;
  }
- #line 1274 "ext/standard/var_unserializer.c"
 -#line 1257 "ext/standard/var_unserializer.c"
++#line 1285 "ext/standard/var_unserializer.c"
  yy95:
        yych = *++YYCURSOR;
        if (yych <= ',') {
@@@ -1319,9 -1294,12 +1330,9 @@@ yy97
  
        return 1;
  }
- #line 1323 "ext/standard/var_unserializer.c"
 -#line 1301 "ext/standard/var_unserializer.c"
++#line 1334 "ext/standard/var_unserializer.c"
  }
- #line 875 "ext/standard/var_unserializer.re"
 -#line 853 "ext/standard/var_unserializer.re"
++#line 886 "ext/standard/var_unserializer.re"
  
  
        return 0;
Simple merge