Home
last modified time | relevance | path

Searched refs:UNEXPECTED (Results 1 – 25 of 70) sorted by relevance

123

/PHP-7.1/Zend/
H A Dzend_range_check.h42 # 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 Dzend_vm_execute.h3556 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) {
3708 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) {
3977 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) {
12925 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) {
13078 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) {
13331 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) {
16508 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) {
16663 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) {
17278 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) {
35618 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) {
[all …]
H A Dzend_vm_def.h843 if (UNEXPECTED(!var_ptr)) {
855 if (UNEXPECTED(!var_ptr)) {
3462 if (UNEXPECTED(!call)) {
4599 if (UNEXPECTED(!iter)) {
5827 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) {
5982 if (UNEXPECTED(!iter) || UNEXPECTED(EG(exception))) {
6125 if (UNEXPECTED(!p->key) ||
6133 if (UNEXPECTED(!p->key)) {
6313 if (UNEXPECTED(!p->key) ||
6321 if (UNEXPECTED(!p->key)) {
[all …]
H A Dzend_object_handlers.c608 } else if (UNEXPECTED(EG(exception))) { in zend_std_read_property()
732 } else if (UNEXPECTED(EG(exception))) { in zend_std_write_property()
805 if (UNEXPECTED(Z_ISUNDEF_P(rv))) { in zend_std_read_dimension()
825 if (UNEXPECTED(!EG(exception))) { in zend_std_read_dimension()
948 if (UNEXPECTED(!zobj->properties)) { in zend_std_get_property_ptr_ptr()
1008 } else if (UNEXPECTED(EG(exception))) { in zend_std_unset_property()
1207 if (UNEXPECTED(!key)) { in zend_std_get_method()
1270 if (UNEXPECTED(!key)) { in zend_std_get_method()
1313 if (UNEXPECTED(!key)) { in zend_std_get_static_method()
1376 if (UNEXPECTED(!key)) { in zend_std_get_static_method()
[all …]
H A Dzend_multiply.h133 if (UNEXPECTED(m_overflow)) { in zend_safe_address()
163 if (UNEXPECTED(m_overflow)) { in zend_safe_address()
185 if (UNEXPECTED(m_overflow)) { in zend_safe_address()
206 if (UNEXPECTED(m_overflow)) { in zend_safe_address()
230 if (UNEXPECTED(m_overflow)) { in zend_safe_address()
244 if (UNEXPECTED(res > UINT64_C(0xFFFFFFFF))) { in zend_safe_address()
260 if (UNEXPECTED((_d + _delta ) != _d)) { in zend_safe_address()
274 if (UNEXPECTED(overflow)) { in zend_safe_address_guarded()
287 if (UNEXPECTED(overflow)) { in zend_safe_addmult()
H A Dzend_arena.h66UNEXPECTED((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 Dzend_execute.c795 if (UNEXPECTED(strict)) { in zend_verify_scalar_type_hint()
901 if (UNEXPECTED(!*ce)) { in zend_check_type()
1443 if (UNEXPECTED(result)) { in zend_pre_incdec_overloaded_property()
1451 if (UNEXPECTED(result)) { in zend_pre_incdec_overloaded_property()
1485 if (UNEXPECTED(result)) { in zend_assign_op_overloaded_property()
1491 if (UNEXPECTED(result)) { in zend_assign_op_overloaded_property()
1688 if (UNEXPECTED(!retval)) { in zend_fetch_dimension_address()
2367 if (UNEXPECTED(EX(call))) { in cleanup_unfinished_calls()
2594 if (UNEXPECTED(fbc == NULL)) { in zend_init_dynamic_call_string()
2695 if (UNEXPECTED(!obj) || UNEXPECTED(!method)) { in zend_init_dynamic_call_array()
[all …]
H A Dzend_execute.h69 if (UNEXPECTED(Z_REFCOUNTED_P(variable_ptr))) { in zend_assign_to_variable()
79 UNEXPECTED(Z_OBJ_HANDLER_P(variable_ptr, set) != NULL)) { in zend_assign_to_variable()
94 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(variable_ptr))) { in zend_assign_to_variable()
98 if (UNEXPECTED(--GC_REFCOUNT(ref) == 0)) { in zend_assign_to_variable()
109 UNEXPECTED(!GC_INFO(garbage))) { in zend_assign_to_variable()
118 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(variable_ptr))) { in zend_assign_to_variable()
121 } else if (ZEND_CONST_COND(value_type == IS_VAR, 1) && UNEXPECTED(ref)) { in zend_assign_to_variable()
122 if (UNEXPECTED(--GC_REFCOUNT(ref) == 0)) { in zend_assign_to_variable()
217 if (UNEXPECTED(call_info & ZEND_CALL_FREE_EXTRA_ARGS)) { in zend_vm_stack_free_extra_args_ex()
265 if (UNEXPECTED(call_info & ZEND_CALL_ALLOCATED)) { in zend_vm_stack_free_call_frame_ex()
[all …]
H A Dzend_generators.c133 if (UNEXPECTED(CG(unclean_shutdown))) { in zend_generator_close()
142 if (UNEXPECTED(!finished_execution)) { in zend_generator_close()
180 while (UNEXPECTED(root != generator)) { in zend_generator_dtor_storage()
721 if (UNEXPECTED(pos >= ht->nNumUsed)) { in zend_generator_get_next_delegated_value()
750 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value()
761 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value()
763 } else if (UNEXPECTED(!value)) { in zend_generator_get_next_delegated_value()
773 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 Dzend_operators.h117 if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) { in zend_dval_to_lval()
128 if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) { in zend_dval_to_lval_cap()
474 if (UNEXPECTED(Z_LVAL_P(op1) == ZEND_LONG_MAX)) { in fast_long_increment_function()
512 if (UNEXPECTED(Z_LVAL_P(op1) == ZEND_LONG_MIN)) { in fast_long_decrement_function()
579 if (UNEXPECTED((Z_LVAL_P(op1) & LONG_SIGN_MASK) == (Z_LVAL_P(op2) & LONG_SIGN_MASK) in fast_long_add_function()
672 if (UNEXPECTED((Z_LVAL_P(op1) & LONG_SIGN_MASK) != (Z_LVAL_P(op2) & LONG_SIGN_MASK) in fast_long_sub_function()
769 …if (UNEXPECTED(Z_TYPE_P(op1) == IS_OBJECT) …
771 …&& UNEXPECTED(Z_OBJ_HANDLER_P(op1, get)) …
782 …&& UNEXPECTED(Z_OBJ_HANDLER_P(op1, do_operation))) { …
790 …&& UNEXPECTED(Z_OBJ_HANDLER_P(op2, do_operation)) …
[all …]
H A Dzend_API.h737 if (UNEXPECTED(_num_args < _min_num_args) || \
738 (UNEXPECTED(_num_args > _max_num_args) && \
754 if (UNEXPECTED(error_code != ZPP_ERROR_OK)) { \
776 if (UNEXPECTED(_i >_num_args)) break; \
860 } else if (UNEXPECTED(_error != NULL)) { \
1014 if (_optional && UNEXPECTED(_i >_num_args)) break; \
1134 if (check_null && UNEXPECTED(!str)) { in zend_parse_arg_string()
1160 if (check_null && UNEXPECTED(!str)) { in zend_parse_arg_path()
1232 if (check_null && UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) { in zend_parse_arg_func()
1245 (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) || in zend_parse_arg_zval()
[all …]
H A Dzend_hash.c103 } else if (UNEXPECTED(nSize >= HT_MAX_SIZE)) { in zend_hash_check_size()
297 if (UNEXPECTED(ht->nNumOfElements == num)) { in zend_array_count()
300 } else if (UNEXPECTED(ht == &EG(symbol_table))) { in zend_array_count()
362 } else if (UNEXPECTED(iter->ht != ht)) { in zend_hash_iterator_pos()
384 } else if (UNEXPECTED(iter->ht != ht)) { in zend_hash_iterator_pos_ex()
435 if (UNEXPECTED(ht->u.v.nIteratorsCount)) { in zend_hash_iterators_remove()
880 if (UNEXPECTED(ht->nNumOfElements == 0)) { in zend_hash_rehash()
900 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) { in zend_hash_rehash()
936 if (UNEXPECTED(i == iter_pos)) { in zend_hash_rehash()
1086 if (UNEXPECTED(Z_TYPE_P(data) == IS_UNDEF)) { in zend_hash_del_ind()
[all …]
H A Dzend_ast.c238 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 Dzend_inheritance.c61 if (UNEXPECTED(func->type == ZEND_INTERNAL_FUNCTION)) { in zend_duplicate_function()
62 if (UNEXPECTED(ce->type & ZEND_INTERNAL_CLASS)) { in zend_duplicate_function()
569 if (UNEXPECTED(parent_flags & ZEND_ACC_FINAL)) { in do_inheritance_check_on_method()
617 if (UNEXPECTED(!zend_do_perform_implementation_check(child, parent))) { in do_inheritance_check_on_method()
680 if (UNEXPECTED(child)) { in do_inherit_property()
710 if (UNEXPECTED(ce->type & ZEND_INTERNAL_CLASS)) { in do_inherit_property()
718 if (UNEXPECTED(ce->type & ZEND_INTERNAL_CLASS)) { in do_inherit_property()
734 if (UNEXPECTED(ce == iface)) { in do_implement_interface()
810 if (UNEXPECTED(ce->ce_flags & ZEND_ACC_INTERFACE)) { in zend_do_inheritance()
812 if (UNEXPECTED(!(parent_ce->ce_flags & ZEND_ACC_INTERFACE))) { in zend_do_inheritance()
[all …]
H A Dzend_operators.c1442 if (UNEXPECTED(EG(exception))) { in bitwise_or_function()
1451 if (UNEXPECTED(EG(exception))) { in bitwise_or_function()
1518 if (UNEXPECTED(EG(exception))) { in bitwise_and_function()
1527 if (UNEXPECTED(EG(exception))) { in bitwise_and_function()
1594 if (UNEXPECTED(EG(exception))) { in bitwise_xor_function()
1728 if (UNEXPECTED(use_copy1)) { in concat_function()
1747 if (UNEXPECTED(use_copy1)) { in concat_function()
1750 if (UNEXPECTED(use_copy2)) { in concat_function()
1779 if (UNEXPECTED(use_copy1)) { in concat_function()
1782 if (UNEXPECTED(use_copy2)) { in concat_function()
[all …]
H A Dzend_smart_str.c37 if (UNEXPECTED(!str->s)) { in smart_str_erealloc()
51 if (UNEXPECTED(!str->s)) { in smart_str_realloc()
H A Dzend_alloc.c140 if (UNEXPECTED(!(condition))) { \
756 if (UNEXPECTED(heap->storage)) {
768 if (UNEXPECTED(heap->storage)) {
779 if (UNEXPECTED(heap->storage)) {
1216 if (UNEXPECTED(bin == NULL)) {
1439 if (UNEXPECTED(ptr == NULL)) {
1745 if (UNEXPECTED(ptr == NULL)) {
2512 if (UNEXPECTED(p == NULL)) {
2529 if (UNEXPECTED(p == NULL)) {
2544 if (UNEXPECTED(p == NULL)) {
[all …]
H A Dzend_sort.c343 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 Dzend_portability.h314 # define UNEXPECTED(condition) __builtin_expect(!!(condition), 0) macro
317 # define UNEXPECTED(condition) (condition) macro
357 ((use_heap = (UNEXPECTED((size) > (limit)))) ? emalloc(size) : alloca(size))
361 do { if (UNEXPECTED(use_heap)) efree(p); } while (0)
H A Dzend_smart_str.h53 if (UNEXPECTED(!str->s)) { in END_EXTERN_C()
57 if (UNEXPECTED(len >= str->a)) { in END_EXTERN_C()
H A Dzend_execute_API.c590 if (UNEXPECTED(EG(exception))) { in zval_update_constant_ex()
751 if (UNEXPECTED(EG(exception))) { in zend_call_function()
794 if (UNEXPECTED(EG(exception))) { in zend_call_function()
809 if (UNEXPECTED(!Z_ISREF_P(arg))) { in zend_call_function()
821 if (UNEXPECTED(EG(exception))) { in zend_call_function()
844 if (UNEXPECTED(func->op_array.fn_flags & ZEND_ACC_CLOSURE)) { in zend_call_function()
1409 if (UNEXPECTED(!scope)) { in zend_fetch_class()
1415 if (UNEXPECTED(!scope)) { in zend_fetch_class()
1419 if (UNEXPECTED(!scope->parent)) { in zend_fetch_class()
1425 if (UNEXPECTED(!ce)) { in zend_fetch_class()
[all …]
H A Dzend_constants.c334 if (UNEXPECTED(!scope)) { in zend_get_constant_ex()
340 if (UNEXPECTED(!scope)) { in zend_get_constant_ex()
343 } else if (UNEXPECTED(!scope->parent)) { in zend_get_constant_ex()
351 if (UNEXPECTED(!ce)) { in zend_get_constant_ex()
384 if (UNEXPECTED(zval_update_constant_ex(ret_constant, c->ce) != SUCCESS)) { in zend_get_constant_ex()
/PHP-7.1/ext/standard/
H A Dmt_rand.c170 if (UNEXPECTED(!BG(mt_rand_is_seeded))) { in php_mt_rand()
228 if (UNEXPECTED(umax == ZEND_ULONG_MAX)) { in php_mt_rand_range()
241 while (UNEXPECTED(result > limit)) { in php_mt_rand_range()
295 if (UNEXPECTED(max < min)) { in PHP_FUNCTION()
/PHP-7.1/sapi/phpdbg/
H A Dphpdbg_help.c72 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.1/ext/opcache/
H A Dzend_accelerator_util_funcs.c199 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 …]

Completed in 280 milliseconds

123