Lines Matching refs:UNEXPECTED
160 if (UNEXPECTED(Z_REFCOUNTED_P(__container_to_free))) { \
162 if (UNEXPECTED(!GC_DELREF(__ref))) { \
317 if (UNEXPECTED(Z_TYPE_P(ret) == IS_UNDEF)) { in _get_zval_ptr_cv()
331 if (UNEXPECTED(Z_TYPE_P(ret) == IS_UNDEF)) { in _get_zval_ptr_cv_deref()
347 if (UNEXPECTED(Z_TYPE_P(ret) == IS_UNDEF)) { in _get_zval_ptr_cv_BP_VAR_R()
357 if (UNEXPECTED(Z_TYPE_P(ret) == IS_UNDEF)) { in _get_zval_ptr_cv_deref_BP_VAR_R()
375 if (UNEXPECTED(Z_TYPE_P(ret) == IS_UNDEF)) { in _get_zval_ptr_cv_BP_VAR_RW()
558 } else if (UNEXPECTED(variable_ptr == value_ptr)) { in zend_assign_to_variable_reference()
586 if (UNEXPECTED(EG(exception) != NULL)) { in zend_wrong_assign_to_variable_reference()
666 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_throw_non_object_error()
747 } else if (UNEXPECTED(EG(exception))) { in zend_verify_weak_scalar_type_hint()
807 if (UNEXPECTED(strict)) { in zend_verify_scalar_type_hint()
812 } else if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_verify_scalar_type_hint()
1026 …if (UNEXPECTED((info->flags & ZEND_ACC_READONLY) && !(Z_PROP_FLAG_P(property_val) & IS_PROP_REINIT… in zend_assign_to_typed_prop()
1034 if (UNEXPECTED(!i_zend_verify_property_type(info, &tmp, EX_USES_STRICT_TYPES()))) { in zend_assign_to_typed_prop()
1079 if (UNEXPECTED(!ce)) { in zend_fetch_ce_from_cache_slot()
1087 if (UNEXPECTED(!ce)) { in zend_fetch_ce_from_cache_slot()
1129 if (UNEXPECTED(ZEND_TYPE_HAS_LIST(*type))) { in zend_check_type_slow()
1195 if (UNEXPECTED(Z_ISREF_P(arg))) { in zend_check_type()
1222 && UNEXPECTED(!zend_check_type(&cur_arg_info->type, arg, cache_slot, zf->common.scope, 0, 0))) { in zend_verify_recv_arg_type()
1234 if (UNEXPECTED(!zend_check_type(&arg_info->type, arg, cache_slot, zf->common.scope, 0, 0))) { in zend_verify_variadic_arg_type()
1252 } else if (UNEXPECTED(fbc->common.fn_flags & ZEND_ACC_VARIADIC)) { in zend_verify_internal_arg_types()
1259 …&& UNEXPECTED(!zend_check_type(&cur_arg_info->type, arg, /* cache_slot */ NULL, fbc->common.scope,… in zend_verify_internal_arg_types()
1458 if (UNEXPECTED(Z_TYPE_P(ret) != IS_NULL)) { in zend_verify_internal_return_type()
1465 …if (UNEXPECTED(!zend_check_type(&ret_info->type, ret, /* cache_slot */ NULL, NULL, 1, /* is_intern… in zend_verify_internal_return_type()
1536 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_assign_to_object_dim()
1570 if (property && UNEXPECTED(Z_ISUNDEF_P(property))) { in zend_binary_assign_op_obj_dim()
1582 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_binary_assign_op_obj_dim()
1588 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_binary_assign_op_obj_dim()
1593 if (UNEXPECTED(GC_DELREF(obj) == 0)) { in zend_binary_assign_op_obj_dim()
1652 if (UNEXPECTED(trailing_data) && type != BP_VAR_UNSET) { in zend_check_string_offset()
1686 if (UNEXPECTED(EG(exception) != NULL)) { in zend_wrong_string_offset_error()
1766 if (UNEXPECTED(GC_DELREF(s) == 0)) { in zend_assign_to_string_offset()
1768 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_assign_to_string_offset()
1774 if (UNEXPECTED(EG(exception) != NULL)) { in zend_assign_to_string_offset()
1775 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_assign_to_string_offset()
1782 if (UNEXPECTED(offset < -(zend_long)ZSTR_LEN(s))) { in zend_assign_to_string_offset()
1785 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_assign_to_string_offset()
1795 if (UNEXPECTED(Z_TYPE_P(value) != IS_STRING)) { in zend_assign_to_string_offset()
1801 if (UNEXPECTED(Z_TYPE_P(value) == IS_UNDEF)) { in zend_assign_to_string_offset()
1806 if (UNEXPECTED(GC_DELREF(s) == 0)) { in zend_assign_to_string_offset()
1811 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_assign_to_string_offset()
1816 if (UNEXPECTED(!tmp)) { in zend_assign_to_string_offset()
1817 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_assign_to_string_offset()
1831 if (UNEXPECTED(string_len != 1)) { in zend_assign_to_string_offset()
1835 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_assign_to_string_offset()
1845 if (UNEXPECTED(GC_DELREF(s) == 0)) { in zend_assign_to_string_offset()
1847 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_assign_to_string_offset()
1853 if (UNEXPECTED(EG(exception) != NULL)) { in zend_assign_to_string_offset()
1854 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_assign_to_string_offset()
1873 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_assign_to_string_offset()
1949 if (UNEXPECTED(Z_TYPE_P(var_ptr) == IS_DOUBLE) && Z_TYPE_P(copy) == IS_LONG) { in zend_incdec_typed_ref()
1951 if (UNEXPECTED(error_prop)) { in zend_incdec_typed_ref()
1955 } else if (UNEXPECTED(!zend_verify_ref_assignable_zval(ref, var_ptr, EX_USES_STRICT_TYPES()))) { in zend_incdec_typed_ref()
1980 if (UNEXPECTED(Z_TYPE_P(var_ptr) == IS_DOUBLE) && Z_TYPE_P(copy) == IS_LONG) { in zend_incdec_typed_prop()
1985 } else if (UNEXPECTED(!zend_verify_property_type(prop_info, var_ptr, EX_USES_STRICT_TYPES()))) { in zend_incdec_typed_prop()
2002 if (UNEXPECTED(Z_TYPE_P(prop) != IS_LONG) && UNEXPECTED(prop_info) in zend_pre_incdec_property_zval()
2012 if (UNEXPECTED(ZEND_REF_HAS_TYPE_SOURCES(ref))) { in zend_pre_incdec_property_zval()
2018 if (UNEXPECTED(prop_info)) { in zend_pre_incdec_property_zval()
2027 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_pre_incdec_property_zval()
2041 if (UNEXPECTED(Z_TYPE_P(prop) != IS_LONG) && UNEXPECTED(prop_info) in zend_post_incdec_property_zval()
2056 if (UNEXPECTED(prop_info)) { in zend_post_incdec_property_zval()
2077 if (UNEXPECTED(EG(exception))) { in zend_post_incdec_overloaded_property()
2106 if (UNEXPECTED(EG(exception))) { in zend_pre_incdec_overloaded_property()
2108 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_pre_incdec_overloaded_property()
2120 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_pre_incdec_overloaded_property()
2138 if (UNEXPECTED(EG(exception))) { in zend_assign_op_overloaded_property()
2140 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_assign_op_overloaded_property()
2148 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_assign_op_overloaded_property()
2321 if (UNEXPECTED(Z_TYPE_P(container) == IS_STRING)) { in zend_binary_assign_op_dim_slow()
2587 if (UNEXPECTED(retval == NULL)) { in zend_fetch_dimension_address()
2594 if (UNEXPECTED(!retval)) { in zend_fetch_dimension_address()
2611 if (UNEXPECTED(!zend_verify_ref_array_assignable(ref))) { in zend_fetch_dimension_address()
2623 if (UNEXPECTED(Z_TYPE_P(container) == IS_STRING)) { in zend_fetch_dimension_address()
2634 if (ZEND_CONST_COND(dim_type == IS_CV, dim != NULL) && UNEXPECTED(Z_TYPE_P(dim) == IS_UNDEF)) { in zend_fetch_dimension_address()
2641 if (UNEXPECTED(retval == &EG(uninitialized_zval))) { in zend_fetch_dimension_address()
2656 } else if (UNEXPECTED(Z_REFCOUNT_P(retval) == 1)) { in zend_fetch_dimension_address()
2666 if (UNEXPECTED(GC_DELREF(obj) == 0)) { in zend_fetch_dimension_address()
2671 if (type != BP_VAR_W && UNEXPECTED(Z_TYPE_P(container) == IS_UNDEF)) { in zend_fetch_dimension_address()
2679 if (UNEXPECTED(old_type == IS_FALSE)) { in zend_fetch_dimension_address()
2682 if (UNEXPECTED(GC_DELREF(ht) == 0)) { in zend_fetch_dimension_address()
2689 if (UNEXPECTED(Z_TYPE_P(container) == IS_FALSE)) { in zend_fetch_dimension_address()
2694 if (ZEND_CONST_COND(dim_type == IS_CV, dim != NULL) && UNEXPECTED(Z_TYPE_P(dim) == IS_UNDEF)) { in zend_fetch_dimension_address()
2751 if (UNEXPECTED(Z_TYPE_P(dim) != IS_LONG)) { in zend_fetch_dimension_address_read()
2759 if (UNEXPECTED(trailing_data)) { in zend_fetch_dimension_address_read()
2779 if (!(GC_FLAGS(str) & IS_STR_INTERNED) && UNEXPECTED(GC_DELREF(str) == 0)) { in zend_fetch_dimension_address_read()
2796 if (!(GC_FLAGS(str) & IS_STR_INTERNED) && UNEXPECTED(GC_DELREF(str) == 0)) { in zend_fetch_dimension_address_read()
2818 if (UNEXPECTED(ZSTR_LEN(str) < ((offset < 0) ? -(size_t)offset : ((size_t)offset + 1)))) { in zend_fetch_dimension_address_read()
2829 real_offset = (UNEXPECTED(offset < 0)) /* Handle negative offset */ in zend_fetch_dimension_address_read()
2839 if (ZEND_CONST_COND(dim_type == IS_CV, 1) && UNEXPECTED(Z_TYPE_P(dim) == IS_UNDEF)) { in zend_fetch_dimension_address_read()
2851 } else if (UNEXPECTED(Z_ISREF_P(retval))) { in zend_fetch_dimension_address_read()
2857 if (UNEXPECTED(GC_DELREF(obj) == 0)) { in zend_fetch_dimension_address_read()
2861 if (type != BP_VAR_IS && UNEXPECTED(Z_TYPE_P(container) == IS_UNDEF)) { in zend_fetch_dimension_address_read()
2864 if (ZEND_CONST_COND(dim_type == IS_CV, 1) && UNEXPECTED(Z_TYPE_P(dim) == IS_UNDEF)) { in zend_fetch_dimension_address_read()
2936 if (/*OP2_TYPE == IS_CV &&*/ UNEXPECTED(Z_TYPE_P(offset) == IS_UNDEF)) { in zend_isset_dim_slow()
2948 if (UNEXPECTED(lval < 0)) { /* Handle negative offset */ in zend_isset_dim_slow()
2975 if (/*OP2_TYPE == IS_CV &&*/ UNEXPECTED(Z_TYPE_P(offset) == IS_UNDEF)) { in zend_isempty_dim_slow()
2987 if (UNEXPECTED(lval < 0)) { /* Handle negative offset */ in zend_isempty_dim_slow()
3046 if (UNEXPECTED(Z_TYPE_P(key) == IS_UNDEF)) { in zend_array_key_exists_fast()
3105 if (UNEXPECTED(slot < obj->properties_table || in zend_object_fetch_property_type_info()
3164 if (container_op_type != IS_UNUSED && UNEXPECTED(Z_TYPE_P(container) != IS_OBJECT)) { in zend_fetch_property_address()
3173 && UNEXPECTED(Z_TYPE_P(container) == IS_UNDEF)) { in zend_fetch_property_address()
3200 if (UNEXPECTED(prop_info->flags & ZEND_ACC_READONLY)) { in zend_fetch_property_address()
3223 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_fetch_property_address()
3249 if (UNEXPECTED(Z_ISREF_P(ptr) && Z_REFCOUNT_P(ptr) == 1)) { in zend_fetch_property_address()
3254 if (UNEXPECTED(EG(exception))) { in zend_fetch_property_address()
3258 } else if (UNEXPECTED(Z_ISERROR_P(ptr))) { in zend_fetch_property_address()
3271 if (UNEXPECTED(!zend_handle_fetch_obj_flags(result, ptr, NULL, prop_info, flags))) { in zend_fetch_property_address()
3276 if (UNEXPECTED(!zend_handle_fetch_obj_flags(result, ptr, Z_OBJ_P(container), NULL, flags))) { in zend_fetch_property_address()
3301 UNEXPECTED(!Z_ISREF_P(value_ptr))) { in zend_assign_to_property_reference()
3315 if (UNEXPECTED(prop_info)) { in zend_assign_to_property_reference()
3329 if (UNEXPECTED(RETURN_VALUE_USED(opline))) { in zend_assign_to_property_reference()
3375 if (UNEXPECTED(ce == NULL)) { in zend_fetch_static_property_address_ex()
3379 if (UNEXPECTED(op1_type != IS_CONST)) { in zend_fetch_static_property_address_ex()
3386 if (UNEXPECTED(ce == NULL)) { in zend_fetch_static_property_address_ex()
3410 if (op1_type == IS_CV && UNEXPECTED(Z_TYPE_P(varname) == IS_UNDEF)) { in zend_fetch_static_property_address_ex()
3422 if (UNEXPECTED(*retval == NULL)) { in zend_fetch_static_property_address_ex()
3446 && UNEXPECTED(Z_TYPE_P(*retval) == IS_UNDEF) in zend_fetch_static_property_address()
3447 && UNEXPECTED(ZEND_TYPE_IS_SET(property_info->type))) { in zend_fetch_static_property_address()
3456 if (UNEXPECTED(success != SUCCESS)) { in zend_fetch_static_property_address()
3656 if (UNEXPECTED(ref)) { in zend_assign_to_typed_ref_ex()
3657 if (UNEXPECTED(GC_DELREF(ref) == 0)) { in zend_assign_to_typed_ref_ex()
3897 if (UNEXPECTED(zend_atomic_bool_load_ex(&EG(vm_interrupt)))) { \
3903 if (UNEXPECTED(zend_atomic_bool_load_ex(&EG(vm_interrupt)))) { \
4012 if (UNEXPECTED(num_args > first_extra_arg)) { in i_init_func_execute_data()
4058 if (EXPECTED(fbc->type == ZEND_USER_FUNCTION) && UNEXPECTED(!RUN_TIME_CACHE(&fbc->op_array))) { in zend_fetch_function()
4073 if (EXPECTED(fbc->type == ZEND_USER_FUNCTION) && UNEXPECTED(!RUN_TIME_CACHE(&fbc->op_array))) { in zend_fetch_function_str()
4186 if (UNEXPECTED(EG(vm_stack)->prev->top == ZEND_VM_STACK_ELEMENTS(EG(vm_stack)->prev))) { in zend_vm_stack_copy_call_frame()
4214 if (UNEXPECTED(opline->opcode == ZEND_INIT_FCALL || in zend_unfinished_calls_gc()
4341 if (UNEXPECTED(EX(call))) { in cleanup_unfinished_calls()
4347 if (UNEXPECTED(opline->opcode == ZEND_INIT_FCALL || in cleanup_unfinished_calls()
4609 if (UNEXPECTED(execute_data->opline->opcode == ZEND_HANDLE_EXCEPTION)) { in zend_unfinished_execution_gc_ex()
4685 if (UNEXPECTED(called_scope == NULL)) { in zend_init_dynamic_call_string()
4697 if (UNEXPECTED(fbc == NULL)) { in zend_init_dynamic_call_string()
4709 if (UNEXPECTED(!(fbc->common.fn_flags & ZEND_ACC_STATIC))) { in zend_init_dynamic_call_string()
4717 if (EXPECTED(fbc->type == ZEND_USER_FUNCTION) && UNEXPECTED(!RUN_TIME_CACHE(&fbc->op_array))) { in zend_init_dynamic_call_string()
4727 if (UNEXPECTED((func = zend_hash_find(EG(function_table), lcname)) == NULL)) { in zend_init_dynamic_call_string()
4735 if (EXPECTED(fbc->type == ZEND_USER_FUNCTION) && UNEXPECTED(!RUN_TIME_CACHE(&fbc->op_array))) { in zend_init_dynamic_call_string()
4781 if (EXPECTED(fbc->type == ZEND_USER_FUNCTION) && UNEXPECTED(!RUN_TIME_CACHE(&fbc->op_array))) { in zend_init_dynamic_call_object()
4802 if (UNEXPECTED(!obj) || UNEXPECTED(!method)) { in zend_init_dynamic_call_array()
4808 if (UNEXPECTED(Z_TYPE_P(obj) != IS_STRING) && UNEXPECTED(Z_TYPE_P(obj) != IS_OBJECT)) { in zend_init_dynamic_call_array()
4814 if (UNEXPECTED(Z_TYPE_P(method) != IS_STRING)) { in zend_init_dynamic_call_array()
4822 if (UNEXPECTED(called_scope == NULL)) { in zend_init_dynamic_call_array()
4831 if (UNEXPECTED(fbc == NULL)) { in zend_init_dynamic_call_array()
4850 if (UNEXPECTED(fbc == NULL)) { in zend_init_dynamic_call_array()
4870 if (EXPECTED(fbc->type == ZEND_USER_FUNCTION) && UNEXPECTED(!RUN_TIME_CACHE(&fbc->op_array))) { in zend_init_dynamic_call_array()
4886 if (UNEXPECTED(!inc_filename)) { in zend_include_or_eval()
4903 } else if (UNEXPECTED(EG(exception))) { in zend_include_or_eval()
4905 } else if (UNEXPECTED(strlen(ZSTR_VAL(inc_filename)) != ZSTR_LEN(inc_filename))) { in zend_include_or_eval()
4939 if (UNEXPECTED(strlen(ZSTR_VAL(inc_filename)) != ZSTR_LEN(inc_filename))) { in zend_include_or_eval()
4968 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) { in zend_fe_reset_iterator()
4982 if (UNEXPECTED(EG(exception) != NULL)) { in zend_fe_reset_iterator()
4991 if (UNEXPECTED(EG(exception) != NULL)) { in zend_fe_reset_iterator()
5101 if (UNEXPECTED(arg_offset == (uint32_t) -1)) { in zend_handle_named_arg()
5107 if (UNEXPECTED(arg_offset == fbc->common.num_args)) { in zend_handle_named_arg()
5146 if (UNEXPECTED(!Z_ISUNDEF_P(arg))) { in zend_handle_named_arg()
5169 if (UNEXPECTED(EG(exception)) && ZEND_USER_CODE(prev_execute_data->func->common.type)) { in end_fake_frame()
5189 if (UNEXPECTED(!RUN_TIME_CACHE(op_array))) { in zend_handle_undef_args()
5208 if (UNEXPECTED(ret == FAILURE)) { in zend_handle_undef_args()
5293 if (UNEXPECTED(used_stack > (size_t)(((char*)EG(vm_stack_end)) - (char*)call))) { in _zend_vm_stack_push_call_frame_ex()
5355 if (check_exception && UNEXPECTED(EG(exception))) { \
5372 } while (UNEXPECTED((++opline)->opcode == _opcode)); \
5376 if ((_check) && UNEXPECTED(EG(exception))) { \
5397 if ((_check) && UNEXPECTED(EG(exception))) { \
5407 if ((_check) && UNEXPECTED(EG(exception))) { \