/php-src/Zend/ |
H A D | zend_range_check.h | 42 # define ZEND_LONG_INT_OVFL(zlong) UNEXPECTED((zlong) > (zend_long)INT_MAX) 43 # define ZEND_LONG_INT_UDFL(zlong) UNEXPECTED((zlong) < (zend_long)INT_MIN) 44 # define ZEND_LONG_EXCEEDS_INT(zlong) UNEXPECTED(ZEND_LONG_INT_OVFL(zlong) || ZEND_LONG_INT_UDFL(zl… 45 # define ZEND_LONG_UINT_OVFL(zlong) UNEXPECTED((zlong) < 0 || (zlong) > (zend_long)UINT_MAX) 54 #define ZEND_SIZE_T_INT_OVFL(size) UNEXPECTED((size) > (size_t)INT_MAX) 56 # define ZEND_SIZE_T_UINT_OVFL(size) UNEXPECTED((size) > (size_t)UINT_MAX)
|
H A D | zend_object_handlers.c | 322 if (UNEXPECTED(GC_DELREF(obj) == 0)) { in zend_deprecated_dynamic_property() 343 if (UNEXPECTED(EG(fake_scope))) { in get_fake_or_executed_scope() 1013 if (UNEXPECTED(!type_matched)) { in zend_std_write_property() 1193 if (UNEXPECTED(!zobj)) { in zend_std_write_property() 1229 if (UNEXPECTED(Z_ISUNDEF_P(rv))) { in zend_std_read_dimension() 1249 if (UNEXPECTED(!EG(exception))) { in zend_std_read_dimension() 1398 if (UNEXPECTED(!zobj->properties)) { in zend_std_get_property_ptr_ptr() 1448 if (UNEXPECTED(Z_ISREF_P(slot)) && in zend_std_unset_property() 1782 if (UNEXPECTED(!key)) { in zend_std_get_method() 1826 if (UNEXPECTED(!key)) { in zend_std_get_method() [all …]
|
H A D | zend_vm_def.h | 1113 if (UNEXPECTED(!prop)) { 1428 if (UNEXPECTED(!prop)) { 1455 if (UNEXPECTED(!prop)) { 1721 if (UNEXPECTED(!name)) { 1845 if (UNEXPECTED(!prop)) { in ZEND_VM_INLINE_HELPER() 2595 if (UNEXPECTED(!prop)) { 2890 if (UNEXPECTED(!prop)) { 4802 if (UNEXPECTED(!arg)) { 4842 if (UNEXPECTED(!arg)) { 4879 if (UNEXPECTED(!arg)) { [all …]
|
H A D | zend_vm_execute.h | 5837 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) { in ZEND_YIELD_FROM_SPEC_CONST_HANDLER() 15413 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) { in ZEND_YIELD_FROM_SPEC_TMPVAR_HANDLER() 41508 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) { in ZEND_YIELD_FROM_SPEC_CV_HANDLER() 41801 if (UNEXPECTED(0)) { in ZEND_PRE_INC_LONG_NO_OVERFLOW_SPEC_CV_RETVAL_UNUSED_HANDLER() 41814 if (UNEXPECTED(1)) { in ZEND_PRE_INC_LONG_NO_OVERFLOW_SPEC_CV_RETVAL_USED_HANDLER() 41827 if (UNEXPECTED(0)) { in ZEND_PRE_INC_LONG_SPEC_CV_RETVAL_UNUSED_HANDLER() 41840 if (UNEXPECTED(1)) { in ZEND_PRE_INC_LONG_SPEC_CV_RETVAL_USED_HANDLER() 41853 if (UNEXPECTED(0)) { in ZEND_PRE_DEC_LONG_NO_OVERFLOW_SPEC_CV_RETVAL_UNUSED_HANDLER() 41866 if (UNEXPECTED(1)) { in ZEND_PRE_DEC_LONG_NO_OVERFLOW_SPEC_CV_RETVAL_USED_HANDLER() 41879 if (UNEXPECTED(0)) { in ZEND_PRE_DEC_LONG_SPEC_CV_RETVAL_UNUSED_HANDLER() [all …]
|
H A D | zend_gc.h | 98 if (UNEXPECTED(GC_MAY_LEAK(ref))) { in gc_check_possible_root() 106 if (UNEXPECTED(GC_MAY_LEAK(ref))) { in gc_check_possible_root_no_ref() 127 if (UNEXPECTED(gc_buffer->cur == gc_buffer->end)) { in zend_get_gc_buffer_add_zval() 137 if (UNEXPECTED(gc_buffer->cur == gc_buffer->end)) { in zend_get_gc_buffer_add_obj() 146 if (UNEXPECTED(gc_buffer->cur == gc_buffer->end)) { in zend_get_gc_buffer_add_ptr()
|
H A D | zend_execute.c | 811 if (UNEXPECTED(strict)) { in zend_verify_scalar_type_hint() 1120 if (UNEXPECTED(!ce)) { in zend_fetch_ce_from_cache_slot() 1128 if (UNEXPECTED(!ce)) { in zend_fetch_ce_from_cache_slot() 2007 if (UNEXPECTED(!tmp)) { in zend_assign_to_string_offset() 2790 if (UNEXPECTED(!retval)) { in zend_fetch_dimension_address() 3636 if (UNEXPECTED(!result)) { in zend_fetch_static_property_address() 3878 if (UNEXPECTED(ref)) { in zend_assign_to_typed_ref_ex() 4579 if (UNEXPECTED(EX(call))) { in cleanup_unfinished_calls() 5034 if (UNEXPECTED(!obj) || UNEXPECTED(!method)) { in zend_init_dynamic_call_array() 5040 if (UNEXPECTED(Z_TYPE_P(obj) != IS_STRING) && UNEXPECTED(Z_TYPE_P(obj) != IS_OBJECT)) { in zend_init_dynamic_call_array() [all …]
|
H A D | zend_multiply.h | 188 if (UNEXPECTED(m_overflow)) { in zend_safe_address() 225 if (UNEXPECTED(m_overflow)) { in zend_safe_address() 247 if (UNEXPECTED(m_overflow)) { in zend_safe_address() 268 if (UNEXPECTED(m_overflow)) { in zend_safe_address() 292 if (UNEXPECTED(m_overflow)) { in zend_safe_address() 306 if (UNEXPECTED(res > UINT64_C(0xFFFFFFFF))) { in zend_safe_address() 322 if (UNEXPECTED((_d + _delta ) != _d)) { in zend_safe_address() 336 if (UNEXPECTED(overflow)) { in zend_safe_address_guarded() 349 if (UNEXPECTED(overflow)) { in zend_safe_addmult()
|
H A D | zend_vm_opcodes.c | 452 if (UNEXPECTED(opcode > ZEND_VM_LAST_OPCODE)) { in zend_get_opcode_name() 458 if (UNEXPECTED(opcode > ZEND_VM_LAST_OPCODE)) { in zend_get_opcode_flags()
|
H A D | zend_objects.c | 39 if (UNEXPECTED(ce->ce_flags & ZEND_ACC_USE_GUARDS)) { in _zend_object_std_init() 66 if (UNEXPECTED(Z_ISREF_P(p)) && in zend_object_dtor_property() 81 if (UNEXPECTED(GC_FLAGS(object) & IS_OBJ_WEAKLY_REFERENCED)) { in zend_object_std_dtor() 85 if (UNEXPECTED(zend_object_is_lazy(object))) { in zend_object_std_dtor() 100 if (UNEXPECTED(object->ce->ce_flags & ZEND_ACC_USE_GUARDS)) { in zend_object_std_dtor() 119 if (UNEXPECTED(zend_object_is_lazy(object))) { in zend_objects_destroy_object() 234 if (UNEXPECTED(Z_ISREF_P(dst)) && in zend_objects_clone_members() 310 if (UNEXPECTED(zend_object_is_lazy(old_object))) { in zend_objects_clone_obj()
|
H A D | zend_call_stack.h | 58 if (UNEXPECTED(size > (uintptr_t)base)) { in zend_call_stack_limit() 64 if (UNEXPECTED(UINTPTR_MAX - (uintptr_t)base < reserved_size)) { in zend_call_stack_limit()
|
H A D | zend_lazy_objects.c | 253 if (UNEXPECTED(reflection_ce->ce_flags & ZEND_ACC_UNINSTANTIABLE)) { in zend_object_make_lazy() 262 if (UNEXPECTED(!(reflection_ce->ce_flags & ZEND_ACC_CONSTANTS_UPDATED))) { in zend_object_make_lazy() 263 if (UNEXPECTED(zend_update_class_constants(reflection_ce) != SUCCESS)) { in zend_object_make_lazy() 316 if (UNEXPECTED(GC_REFCOUNT(obj->properties) > 1)) { in zend_object_make_lazy() 348 if (UNEXPECTED(!lazy_properties_count)) { in zend_object_make_lazy() 487 if (UNEXPECTED(EG(exception))) { in zend_lazy_object_init_proxy() 492 if (UNEXPECTED(Z_TYPE(retval) != IS_OBJECT)) { in zend_lazy_object_init_proxy() 510 if (UNEXPECTED(Z_OBJ(retval) == obj || zend_object_is_lazy(Z_OBJ(retval)))) { in zend_lazy_object_init_proxy() 539 if (UNEXPECTED(GC_DELREF(obj) == 0)) { in zend_lazy_object_init_proxy() 655 if (UNEXPECTED(GC_DELREF(obj) == 0)) { in zend_lazy_object_init() [all …]
|
H A D | zend_generators.c | 157 if (UNEXPECTED(CG(unclean_shutdown))) { in zend_generator_close() 166 if (UNEXPECTED(!finished_execution)) { in zend_generator_close() 656 if (UNEXPECTED(pos >= ht->nNumUsed)) { in zend_generator_get_next_delegated_value() 674 if (UNEXPECTED(pos >= ht->nNumUsed)) { in zend_generator_get_next_delegated_value() 700 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value() 711 if (UNEXPECTED(EG(exception) != NULL) || UNEXPECTED(!value)) { in zend_generator_get_next_delegated_value() 721 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value() 745 if (UNEXPECTED(!generator->execute_data)) { in zend_generator_resume() 848 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_resume() 990 if (UNEXPECTED(!generator->execute_data)) { in ZEND_METHOD() [all …]
|
H A D | zend_API.h | 1102 if (is_ref || UNEXPECTED(Z_ISREF_P(_zv))) { \ 1124 if (is_ref || UNEXPECTED(Z_ISREF_P(_zv))) { \ 1146 if (is_ref || UNEXPECTED(Z_ISREF_P(_zv))) { \ 1168 if (is_ref || UNEXPECTED(Z_ISREF_P(_zv))) { \ 1190 if (is_ref || UNEXPECTED(Z_ISREF_P(_zv))) { \ 1621 if (UNEXPECTED(ZEND_NUM_ARGS() != 0)) { \ 1646 if (UNEXPECTED(_i >_num_args)) break; \ 2309 if (check_null && UNEXPECTED(!str)) { in zend_parse_arg_string() 2335 if (check_null && UNEXPECTED(!str)) { in zend_parse_arg_path() 2501 (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) || in zend_parse_arg_zval() [all …]
|
H A D | zend_arena.h | 64 …UNEXPECTED((size + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena))) > (size_t)(arena->end - (char*) arena… in zend_arena_alloc() 86 if (UNEXPECTED(overflow)) { in zend_arena_calloc() 103 while (UNEXPECTED((char*)checkpoint > arena->end) || in zend_arena_release() 104 UNEXPECTED((char*)checkpoint <= (char*)arena)) { in zend_arena_release() 182 if (UNEXPECTED(overflow)) { in zend_arena_calloc()
|
/php-src/ext/mbstring/ |
H A D | php_unicode.c | 206 if (UNEXPECTED(code > 0xffffff)) { in php_unicode_tolower_simple() 213 if (UNEXPECTED(code > 0xffffff)) { in php_unicode_toupper_simple() 220 if (UNEXPECTED(code > 0xffffff)) { in php_unicode_totitle_simple() 227 if (UNEXPECTED(code > 0xffffff)) { in php_unicode_tofold_simple() 327 if (UNEXPECTED(w > 0xFFFFFF)) { in php_unicode_convert_case() 341 if (UNEXPECTED(w > 0xFFFFFF)) { in php_unicode_convert_case() 346 if (UNEXPECTED(w > 0xFFFFFF)) { in php_unicode_convert_case() 357 if (UNEXPECTED(w > 0xFFFFFF)) { in php_unicode_convert_case() 399 if (UNEXPECTED(w > 0xFFFFFF)) { in php_unicode_convert_case() 410 if (UNEXPECTED(w > 0xFFFFFF)) { in php_unicode_convert_case() [all …]
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_helpers.c | 59 if (UNEXPECTED(func == NULL)) { in zend_jit_find_func_helper() 85 if (UNEXPECTED(func == NULL)) { in zend_jit_find_ns_func_helper() 152 if (UNEXPECTED(fbc == NULL)) { in zend_jit_find_method_helper() 201 if (UNEXPECTED(ce == NULL)) { in zend_jit_find_class_helper() 1342 if (UNEXPECTED(result)) { in zend_assign_to_string_offset() 1386 if (UNEXPECTED(!tmp)) { in zend_assign_to_string_offset() 1911 if (UNEXPECTED(!ret)) { in zend_jit_verify_arg_slow() 3051 if (UNEXPECTED(result)) { in zend_jit_pre_inc_obj_helper() 3082 if (UNEXPECTED(result)) { in zend_jit_pre_inc_obj_helper() 3103 if (UNEXPECTED(result)) { in zend_jit_pre_inc_obj_helper() [all …]
|
/php-src/ext/dom/parentnode/ |
H A D | tree.c | 365 if (UNEXPECTED(node == NULL)) { in dom_zvals_to_single_node() 373 if (UNEXPECTED(!node)) { in dom_zvals_to_single_node() 385 if (UNEXPECTED(!newNode)) { in dom_zvals_to_single_node() 418 if (UNEXPECTED(newNode == NULL)) { in dom_zvals_to_single_node() 562 if (UNEXPECTED(node == NULL)) { in php_dom_pre_insert() 595 if (UNEXPECTED(node == NULL)) { in dom_parent_node_append() 621 if (UNEXPECTED(node == NULL)) { in dom_parent_node_prepend() 642 if (UNEXPECTED(parentNode == NULL)) { in dom_parent_node_after() 674 if (UNEXPECTED(parentNode == NULL)) { in dom_parent_node_before() 760 if (UNEXPECTED(node == NULL)) { in dom_child_replace_with() [all …]
|
/php-src/ext/dom/ |
H A D | html5_parser.c | 89 if (UNEXPECTED(lxml_text == NULL)) { in lexbor_libxml2_bridge_new_text_node_fast() 143 if (UNEXPECTED(lxml_element == NULL)) { in lexbor_libxml2_bridge_convert() 176 if (UNEXPECTED(lxml_child_parent == NULL)) { in lexbor_libxml2_bridge_convert() 215 if (UNEXPECTED(lxml_attr == NULL)) { in lexbor_libxml2_bridge_convert() 226 if (UNEXPECTED(lxml_text == NULL)) { in lexbor_libxml2_bridge_convert() 272 if (UNEXPECTED(data_length >= INT_MAX)) { in lexbor_libxml2_bridge_convert() 277 if (UNEXPECTED(lxml_text == NULL)) { in lexbor_libxml2_bridge_convert() 300 if (UNEXPECTED(lxml_dtd == NULL)) { in lexbor_libxml2_bridge_convert() 308 if (UNEXPECTED(lxml_comment == NULL)) { in lexbor_libxml2_bridge_convert() 345 if (UNEXPECTED(!lxml_doc)) { in lexbor_libxml2_bridge_convert_document() [all …]
|
/php-src/ext/bcmath/libbcmath/src/ |
H A D | long2num.c | 27 if (UNEXPECTED(lval == 0)) { in bc_long2num() 33 if (UNEXPECTED(lval == ZEND_LONG_MIN)) { in bc_long2num()
|
H A D | str2num.c | 136 if (UNEXPECTED(!decimal_point && *ptr != '\0')) { in bc_str2num() 145 if (UNEXPECTED(*fractional_ptr == '\0')) { in bc_str2num() 154 if (UNEXPECTED(*fractional_end != '\0')) { in bc_str2num()
|
/php-src/ext/intl/dateformat/ |
H A D | dateformat_attrcpp.cpp | 72 if (UNEXPECTED(tz_clone == NULL)) { in PHP_FUNCTION() 147 if (UNEXPECTED(cal_clone == NULL)) { in PHP_FUNCTION() 198 if (UNEXPECTED(old_timezone == NULL)) { in PHP_FUNCTION() 208 if (UNEXPECTED(cal == NULL)) { in PHP_FUNCTION()
|
/php-src/ext/random/ |
H A D | zend_utils.c | 29 if (UNEXPECTED(!state->initialized)) { in php_random_bytes_insecure_for_zend() 51 } while (UNEXPECTED(t[0] == 0 && t[1] == 0 && t[2] == 0 && t[3] == 0)); in php_random_bytes_insecure_for_zend()
|
H A D | gammasection.c | 79 if (UNEXPECTED(max <= min || hi < 1)) { in php_random_gammasection_closed_open() 107 if (UNEXPECTED(max < min)) { in php_random_gammasection_closed_closed() 139 if (UNEXPECTED(max <= min || hi < 1)) { in php_random_gammasection_open_closed() 167 if (UNEXPECTED(max <= min || hi < 2)) { in php_random_gammasection_open_open()
|
/php-src/ext/intl/ |
H A D | intl_convertcpp.cpp | 26 if(UNEXPECTED(str_len > INT32_MAX)) { in intl_stringFromChar() 59 if (UNEXPECTED(from.isBogus())) { in intl_charFromString()
|
/php-src/ext/bcmath/ |
H A D | bcmath.c | 153 if (UNEXPECTED(scale < 0 || scale > INT_MAX)) { in bcmath_check_scale() 1048 if (UNEXPECTED(CHECK_RET_SCALE_OVERFLOW(*scale, n1_full_scale))) { in bcmath_number_mul_internal() 1065 if (UNEXPECTED(CHECK_RET_SCALE_OVERFLOW(*scale, n1_full_scale))) { in bcmath_number_div_internal() 1102 if (UNEXPECTED(n2->n_scale != 0)) { in bcmath_number_pow_internal() 1116 if (UNEXPECTED(*scale > INT_MAX || *scale < n1_full_scale)) { in bcmath_number_pow_internal() 1122 if (UNEXPECTED(CHECK_RET_SCALE_OVERFLOW(*scale, n1_full_scale))) { in bcmath_number_pow_internal() 1360 if (UNEXPECTED(!(zend_parse_arg_obj(_arg, &(dest_obj), ce, 0) || \ 1376 if (UNEXPECTED(CHECK_SCALE_OVERFLOW(full_scale))) { in bc_num_from_obj_or_str_or_long_with_err() 1396 if (UNEXPECTED(intern->num != NULL)) { in PHP_METHOD() 1670 if (UNEXPECTED(CHECK_RET_SCALE_OVERFLOW(scale, intern->scale))) { in PHP_METHOD() [all …]
|