/PHP-7.2/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_vm_def.h | 870 if (UNEXPECTED(!var_ptr)) { 882 if (UNEXPECTED(!var_ptr)) { 3099 if (UNEXPECTED(ce == NULL)) { 3110 if (UNEXPECTED(ce == NULL)) { 3302 if (UNEXPECTED(!call)) { 4427 if (UNEXPECTED(!iter)) { 5674 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) { 5797 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) { 5947 if (UNEXPECTED(!p->key)) { 6112 if (UNEXPECTED(!p->key)) { [all …]
|
H A D | zend_vm_execute.h | 3544 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) { 3664 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) { 3953 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) { 12986 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) { 13107 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) { 13380 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) { 16640 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) { 16763 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) { 17362 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) { 33995 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) { [all …]
|
H A D | zend_object_handlers.c | 601 } else if (UNEXPECTED(EG(exception))) { in zend_std_read_property() 725 } else if (UNEXPECTED(EG(exception))) { in zend_std_write_property() 796 if (UNEXPECTED(Z_ISUNDEF_P(rv))) { in zend_std_read_dimension() 816 if (UNEXPECTED(!EG(exception))) { in zend_std_read_dimension() 939 if (UNEXPECTED(!zobj->properties)) { in zend_std_get_property_ptr_ptr() 999 } else if (UNEXPECTED(EG(exception))) { in zend_std_unset_property() 1198 if (UNEXPECTED(!key)) { in zend_std_get_method() 1261 if (UNEXPECTED(!key)) { in zend_std_get_method() 1301 if (UNEXPECTED(!key)) { in zend_std_get_static_method() 1364 if (UNEXPECTED(!key)) { in zend_std_get_static_method() [all …]
|
H A D | zend_multiply.h | 170 if (UNEXPECTED(m_overflow)) { in zend_safe_address() 200 if (UNEXPECTED(m_overflow)) { in zend_safe_address() 222 if (UNEXPECTED(m_overflow)) { in zend_safe_address() 243 if (UNEXPECTED(m_overflow)) { in zend_safe_address() 267 if (UNEXPECTED(m_overflow)) { in zend_safe_address() 281 if (UNEXPECTED(res > UINT64_C(0xFFFFFFFF))) { in zend_safe_address() 297 if (UNEXPECTED((_d + _delta ) != _d)) { in zend_safe_address() 311 if (UNEXPECTED(overflow)) { in zend_safe_address_guarded() 324 if (UNEXPECTED(overflow)) { in zend_safe_addmult()
|
H A D | zend_execute.c | 811 if (UNEXPECTED(strict)) { in zend_verify_scalar_type_hint() 839 if (UNEXPECTED(!*ce)) { in zend_check_type() 1391 if (UNEXPECTED(result)) { in zend_pre_incdec_overloaded_property() 1399 if (UNEXPECTED(result)) { in zend_pre_incdec_overloaded_property() 1436 if (UNEXPECTED(result)) { in zend_assign_op_overloaded_property() 1442 if (UNEXPECTED(result)) { in zend_assign_op_overloaded_property() 1639 if (UNEXPECTED(!retval)) { in zend_fetch_dimension_address() 2005 if (UNEXPECTED(ce == NULL)) { in zend_fetch_static_property_address() 2351 if (UNEXPECTED(EX(call))) { in cleanup_unfinished_calls() 2682 if (UNEXPECTED(!obj) || UNEXPECTED(!method)) { in zend_init_dynamic_call_array() [all …]
|
H A D | zend_arena.h | 66 …UNEXPECTED((size + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena))) > (size_t)(arena->end - (char*) arena… in zend_arena_alloc() 88 if (UNEXPECTED(overflow)) { in zend_arena_calloc() 105 while (UNEXPECTED((char*)checkpoint > arena->end) || in zend_arena_release() 106 UNEXPECTED((char*)checkpoint <= (char*)arena)) { in zend_arena_release()
|
H A D | zend_execute.h | 71 if (UNEXPECTED(Z_REFCOUNTED_P(variable_ptr))) { in zend_assign_to_variable() 81 UNEXPECTED(Z_OBJ_HANDLER_P(variable_ptr, set) != NULL)) { in zend_assign_to_variable() 96 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(variable_ptr))) { in zend_assign_to_variable() 100 if (UNEXPECTED(--GC_REFCOUNT(ref) == 0)) { in zend_assign_to_variable() 110 if (UNEXPECTED(GC_MAY_LEAK(garbage))) { in zend_assign_to_variable() 119 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(variable_ptr))) { in zend_assign_to_variable() 122 } else if (ZEND_CONST_COND(value_type == IS_VAR, 1) && UNEXPECTED(ref)) { in zend_assign_to_variable() 123 if (UNEXPECTED(--GC_REFCOUNT(ref) == 0)) { in zend_assign_to_variable() 218 if (UNEXPECTED(call_info & ZEND_CALL_FREE_EXTRA_ARGS)) { in zend_vm_stack_free_extra_args_ex() 266 if (UNEXPECTED(call_info & ZEND_CALL_ALLOCATED)) { in zend_vm_stack_free_call_frame_ex() [all …]
|
H A D | zend_operators.h | 114 if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) { in zend_dval_to_lval() 125 if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) { in zend_dval_to_lval_cap() 446 if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), 1, &lresult))) { in fast_long_increment_function() 454 if (UNEXPECTED(__builtin_saddll_overflow(Z_LVAL_P(op1), 1, &llresult))) { in fast_long_increment_function() 487 if (UNEXPECTED(Z_LVAL_P(op1) == ZEND_LONG_MAX)) { in fast_long_increment_function() 500 if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), 1, &lresult))) { in fast_long_decrement_function() 508 if (UNEXPECTED(__builtin_ssubll_overflow(Z_LVAL_P(op1), 1, &llresult))) { in fast_long_decrement_function() 541 if (UNEXPECTED(Z_LVAL_P(op1) == ZEND_LONG_MIN)) { in fast_long_decrement_function() 554 if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) { in fast_long_add_function() 622 if (UNEXPECTED((Z_LVAL_P(op1) & LONG_SIGN_MASK) == (Z_LVAL_P(op2) & LONG_SIGN_MASK) in fast_long_add_function() [all …]
|
H A D | zend_generators.c | 138 if (UNEXPECTED(CG(unclean_shutdown))) { in zend_generator_close() 147 if (UNEXPECTED(!finished_execution)) { in zend_generator_close() 184 while (UNEXPECTED(root != generator)) { in zend_generator_dtor_storage() 725 if (UNEXPECTED(pos >= ht->nNumUsed)) { in zend_generator_get_next_delegated_value() 754 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value() 765 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value() 767 } else if (UNEXPECTED(!value)) { in zend_generator_get_next_delegated_value() 777 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value() 802 if (UNEXPECTED(!generator->execute_data)) { in zend_generator_resume() 871 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_resume() [all …]
|
H A D | zend_API.h | 750 if (UNEXPECTED(_num_args < _min_num_args) || \ 751 (UNEXPECTED(_num_args > _max_num_args) && \ 767 if (UNEXPECTED(error_code != ZPP_ERROR_OK)) { \ 789 if (UNEXPECTED(_i >_num_args)) break; \ 890 } else if (UNEXPECTED(_error != NULL)) { \ 1194 if (check_null && UNEXPECTED(!str)) { in zend_parse_arg_string() 1220 if (check_null && UNEXPECTED(!str)) { in zend_parse_arg_path() 1250 && UNEXPECTED(GC_REFCOUNT(Z_OBJ_P(arg)->properties) > 1)) { in zend_parse_arg_array_ht() 1292 if (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_func() 1305 (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) || in zend_parse_arg_zval() [all …]
|
H A D | zend_hash.c | 105 } else if (UNEXPECTED(nSize >= HT_MAX_SIZE)) { in zend_hash_check_size() 299 if (UNEXPECTED(ht->nNumOfElements == num)) { in zend_array_count() 302 } else if (UNEXPECTED(ht == &EG(symbol_table))) { in zend_array_count() 364 } else if (UNEXPECTED(iter->ht != ht)) { in zend_hash_iterator_pos() 386 } else if (UNEXPECTED(iter->ht != ht)) { in zend_hash_iterator_pos_ex() 437 if (UNEXPECTED(ht->u.v.nIteratorsCount)) { in zend_hash_iterators_remove() 879 if (UNEXPECTED(ht->nNumOfElements == 0)) { in zend_hash_rehash() 899 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) { in zend_hash_rehash() 935 if (UNEXPECTED(i >= iter_pos)) { in zend_hash_rehash() 1636 if (UNEXPECTED(Z_TYPE_P(data) == IS_UNDEF)) { in zend_hash_copy() [all …]
|
H A D | zend_ast.c | 238 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate() 252 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate() 267 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate() 281 if (UNEXPECTED(zval_update_constant_ex(zv, scope) != SUCCESS)) { in zend_ast_evaluate() 288 if (UNEXPECTED(zval_update_constant_ex(result, scope) != SUCCESS)) { in zend_ast_evaluate() 299 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate() 317 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate() 335 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate() 360 if (UNEXPECTED(zend_ast_evaluate(&op1, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate() 376 if (UNEXPECTED(zend_ast_evaluate(&op2, ast->child[0], scope) != SUCCESS)) { in zend_ast_evaluate() [all …]
|
H A D | zend_inheritance.c | 61 if (UNEXPECTED(func->type == ZEND_INTERNAL_FUNCTION)) { in zend_duplicate_function() 62 if (UNEXPECTED(ce->type & ZEND_INTERNAL_CLASS)) { in zend_duplicate_function() 554 if (UNEXPECTED(parent_flags & ZEND_ACC_FINAL)) { in do_inheritance_check_on_method() 602 if (UNEXPECTED(!zend_do_perform_implementation_check(child, parent))) { in do_inheritance_check_on_method() 665 if (UNEXPECTED(child)) { in do_inherit_property() 695 if (UNEXPECTED(ce->type & ZEND_INTERNAL_CLASS)) { in do_inherit_property() 703 if (UNEXPECTED(ce->type & ZEND_INTERNAL_CLASS)) { in do_inherit_property() 719 if (UNEXPECTED(ce == iface)) { in do_implement_interface() 795 if (UNEXPECTED(ce->ce_flags & ZEND_ACC_INTERFACE)) { in zend_do_inheritance() 797 if (UNEXPECTED(!(parent_ce->ce_flags & ZEND_ACC_INTERFACE))) { in zend_do_inheritance() [all …]
|
H A D | zend_operators.c | 1443 if (UNEXPECTED(EG(exception))) { in bitwise_or_function() 1455 if (UNEXPECTED(EG(exception))) { in bitwise_or_function() 1521 if (UNEXPECTED(EG(exception))) { in bitwise_and_function() 1533 if (UNEXPECTED(EG(exception))) { in bitwise_and_function() 1599 if (UNEXPECTED(EG(exception))) { in bitwise_xor_function() 1742 if (UNEXPECTED(use_copy1)) { in concat_function() 1764 if (UNEXPECTED(use_copy1)) { in concat_function() 1767 if (UNEXPECTED(use_copy2)) { in concat_function() 1796 if (UNEXPECTED(use_copy1)) { in concat_function() 1799 if (UNEXPECTED(use_copy2)) { in concat_function() [all …]
|
H A D | zend_smart_str.c | 37 if (UNEXPECTED(!str->s)) { in smart_str_erealloc() 51 if (UNEXPECTED(!str->s)) { in smart_str_realloc()
|
H A D | zend_alloc.c | 140 if (UNEXPECTED(!(condition))) { \ 758 if (UNEXPECTED(heap->storage)) { 770 if (UNEXPECTED(heap->storage)) { 781 if (UNEXPECTED(heap->storage)) { 800 if (UNEXPECTED(heap->storage)) { 1218 if (UNEXPECTED(bin == NULL)) { 1441 if (UNEXPECTED(ptr == NULL)) { 1752 if (UNEXPECTED(ptr == NULL)) { 1816 if (UNEXPECTED(chunk == NULL)) { 2559 if (UNEXPECTED(p == NULL)) { [all …]
|
H A D | zend_sort.c | 343 if (UNEXPECTED(i == j)) { in zend_sort() 348 if (UNEXPECTED(j == i)) { in zend_sort() 353 if (UNEXPECTED(j == i)) { in zend_sort() 359 if (UNEXPECTED(i == j)) { in zend_sort()
|
H A D | zend_execute_API.c | 573 if (UNEXPECTED(EG(exception))) { in zval_update_constant_ex() 733 if (UNEXPECTED(EG(exception))) { in zend_call_function() 754 if (UNEXPECTED(EG(exception))) { in zend_call_function() 768 if (UNEXPECTED(!Z_ISREF_P(arg))) { in zend_call_function() 780 if (UNEXPECTED(EG(exception))) { in zend_call_function() 882 if (UNEXPECTED(EG(exception))) { in zend_call_function() 883 if (UNEXPECTED(!EG(current_execute_data))) { in zend_call_function() 1372 if (UNEXPECTED(!scope)) { in zend_fetch_class() 1378 if (UNEXPECTED(!scope)) { in zend_fetch_class() 1382 if (UNEXPECTED(!scope->parent)) { in zend_fetch_class() [all …]
|
H A D | zend_smart_string.h | 83 if (UNEXPECTED((size_t) len > SIZE_MAX - str->len)) { in smart_string_alloc() 87 if (UNEXPECTED(len >= str->a)) { in smart_string_alloc()
|
H A D | zend_portability.h | 312 # define UNEXPECTED(condition) __builtin_expect(!!(condition), 0) macro 315 # define UNEXPECTED(condition) (condition) macro 355 ((use_heap = (UNEXPECTED((size) > (limit)))) ? emalloc(size) : alloca(size)) 359 do { if (UNEXPECTED(use_heap)) efree(p); } while (0)
|
H A D | zend_smart_str.h | 56 if (UNEXPECTED(!str->s)) { in END_EXTERN_C() 60 if (UNEXPECTED(len >= str->a)) { in END_EXTERN_C()
|
/PHP-7.2/ext/standard/ |
H A D | mt_rand.c | 170 if (UNEXPECTED(!BG(mt_rand_is_seeded))) { in php_mt_rand() 221 if (UNEXPECTED(umax == UINT32_MAX)) { in rand_range32() 237 while (UNEXPECTED(result > limit)) { in rand_range32() 252 if (UNEXPECTED(umax == UINT64_MAX)) { in rand_range64() 268 while (UNEXPECTED(result > limit)) { in rand_range64() 330 if (UNEXPECTED(max < min)) { in PHP_FUNCTION()
|
/PHP-7.2/sapi/phpdbg/ |
H A D | phpdbg_help.c | 72 if (UNEXPECTED(p[0] == '*') && p[1] == '*') { in pretty_print() 75 } else if (UNEXPECTED(p[0] == '$') && p[1] == 'P') { in pretty_print() 78 } else if (UNEXPECTED(p[0] == '\\')) { in pretty_print() 96 if (UNEXPECTED(*p == ' ')) { in pretty_print() 100 } else if (UNEXPECTED(*p == '\n')) { in pretty_print() 105 } else if (UNEXPECTED(p[0] == '*') && p[1] == '*') { in pretty_print() 113 } else if (UNEXPECTED(p[0] == '$') && p[1] == 'P') { in pretty_print() 118 } else if (UNEXPECTED(p[0] == '\\')) { in pretty_print() 127 if (UNEXPECTED(line_count>=term_width) && last_new_blank) { in pretty_print()
|
/PHP-7.2/ext/opcache/ |
H A D | zend_accelerator_util_funcs.c | 199 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_hash_clone_constants() 250 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_hash_clone_methods() 308 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_hash_clone_prop_info() 483 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_accel_function_hash_copy() 486 if (UNEXPECTED(t != NULL)) { in zend_accel_function_hash_copy() 527 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_accel_function_hash_copy_from_shm() 530 if (UNEXPECTED(t != NULL)) { in zend_accel_function_hash_copy_from_shm() 570 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_accel_class_hash_copy() 573 if (UNEXPECTED(t != NULL)) { in zend_accel_class_hash_copy() 577 } else if (UNEXPECTED(!ZCG(accel_directives).ignore_dups)) { in zend_accel_class_hash_copy() [all …]
|