  static int ZEND_ADD_SPEC_TMP_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
  {
  	zend_op *opline = EX(opline);
-@@ -5952,6 +6176,19 @@
+@@ -5958,6 +6182,19 @@
  	return zend_init_add_array_helper_SPEC_TMP_VAR(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
  }
  

 static int ZEND_BW_NOT_SPEC_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
 {
 	zend_op *opline = EX(opline);
@@ -9114,6 +9364,19 @@
 	return zend_isset_isempty_dim_prop_obj_handler_SPEC_VAR_CONST(1, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 }
 

+	GET_REFLECTION_OBJECT_PTR(ce);
+
+	array_init(return_value);
+	if (ce->annotations) {
+		zend_class_entry *scope = EG(scope);
+
+		EG(scope) = ce;
+		zend_hash_apply_with_argument(ce->annotations, (apply_func_arg_t) _update_constant_recursive, (void *) 1 TSRMLS_CC);
+		EG(scope) = scope;
+
+		zend_hash_copy(Z_ARRVAL_P(return_value), ce->annotations, (copy_ctor_func_t) zval_add_ref, (void *) &tmp_copy, sizeof(zval *));
+	}
+}
+/* }}} */
+
