Home
last modified time | relevance | path

Searched refs:ZEND_ASSERT (Results 1 – 25 of 55) sorted by relevance

123

/PHP-7.0/Zend/
H A Dzend_ast.h221 ZEND_ASSERT(zend_ast_is_list(ast)); in zend_ast_get_list()
226 ZEND_ASSERT(ast->kind == ZEND_AST_ZVAL); in zend_ast_get_zval()
231 ZEND_ASSERT(Z_TYPE_P(zv) == IS_STRING); in zend_ast_get_str()
236 ZEND_ASSERT(!zend_ast_is_list(ast)); in zend_ast_get_num_children()
H A Dzend_portability.h109 # define ZEND_ASSERT(c) assert(c) macro
111 # define ZEND_ASSERT(c) ZEND_ASSUME(c) macro
117 # define EMPTY_SWITCH_DEFAULT_CASE() default: ZEND_ASSERT(0); break;
H A Dzend_string.h204 ZEND_ASSERT(len >= ZSTR_LEN(s)); in zend_string_extend()
224 ZEND_ASSERT(len <= ZSTR_LEN(s)); in zend_string_truncate()
262 ZEND_ASSERT(GC_REFCOUNT(s) <= 1); in zend_string_free()
H A Dzend_opcode.c112 ZEND_ASSERT(function->type == ZEND_INTERNAL_FUNCTION); in destroy_zend_function()
113 ZEND_ASSERT(function->common.function_name); in destroy_zend_function()
123 ZEND_ASSERT(function->common.function_name); in zend_function_dtor()
127 ZEND_ASSERT(function->type == ZEND_INTERNAL_FUNCTION); in zend_function_dtor()
128 ZEND_ASSERT(function->common.function_name); in zend_function_dtor()
529 ZEND_ASSERT(op_array->opcodes[finally_op_num - 2].opcode == ZEND_FAST_CALL); in zend_resolve_fast_call()
H A Dzend_arena.h111 ZEND_ASSERT((char*)checkpoint > (char*)arena && (char*)checkpoint <= arena->end); in zend_arena_release()
H A Dzend_execute.h83 ZEND_ASSERT(GC_REFCOUNT(ref) > 1); in zend_assign_to_variable()
163 # define ZEND_ASSERT_VM_STACK(stack) ZEND_ASSERT(stack->top > (zval *) stack && stack->end > (zval …
164 # define ZEND_ASSERT_VM_STACK_GLOBAL ZEND_ASSERT(EG(vm_stack_top) > (zval *) EG(vm_stack) && EG(vm_…
H A Dzend_types.h811 ZEND_ASSERT(Z_REFCOUNTED_P(pz) || Z_IMMUTABLE_P(pz) || Z_SYMBOLTABLE_P(pz)); in zval_refcount_p()
816 ZEND_ASSERT(Z_REFCOUNTED_P(pz)); in zval_set_refcount_p()
821 ZEND_ASSERT(Z_REFCOUNTED_P(pz)); in zval_addref_p()
826 ZEND_ASSERT(Z_REFCOUNTED_P(pz)); in zval_delref_p()
907 ZEND_ASSERT(Z_ISREF_P(_z)); \
936 ZEND_ASSERT(Z_TYPE_P(_zv) != IS_REFERENCE); \
H A Dzend_language_scanner.l129 ZEND_ASSERT(internal_encoding); in BEGIN_EXTERN_C()
147 ZEND_ASSERT(internal_encoding); in encoding_filter_intermediate_to_internal()
1649 ZEND_ASSERT(!errno && end == yytext + yyleng);
1655 ZEND_ASSERT(end == yytext + yyleng);
1699 ZEND_ASSERT(!errno);
1720 ZEND_ASSERT(!errno && end == hex + len);
1726 ZEND_ASSERT(end == hex + len);
1739 ZEND_ASSERT(end == yytext + yyleng);
1757 ZEND_ASSERT(end == yytext + yyleng);
H A Dzend_execute.c206 ZEND_ASSERT(Z_TYPE_P(ret) != IS_REFERENCE); in _get_zval_ptr_tmp()
421 ZEND_ASSERT(op_type == IS_VAR); in _get_zval_ptr()
442 ZEND_ASSERT(op_type == IS_VAR); in _get_zval_ptr_r()
463 ZEND_ASSERT(op_type == IS_VAR); in _get_zval_ptr_deref()
484 ZEND_ASSERT(op_type == IS_VAR); in _get_zval_ptr_r_deref()
505 ZEND_ASSERT(op_type == IS_VAR); in _get_zval_ptr_undef()
539 ZEND_ASSERT(op_type == IS_VAR); in _get_zval_ptr_ptr()
838 ZEND_ASSERT(Z_TYPE_P(arg) != IS_OBJECT); in zend_verify_arg_type()
1538 ZEND_ASSERT(fetch_type == ZEND_FETCH_LOCAL); in zend_get_target_symbol_table()
1890 ZEND_ASSERT(result != NULL); in zend_fetch_dimension_address_read()
[all …]
H A Dzend_alloc.c1926 ZEND_ASSERT(page_offset != 0);
1929 ZEND_ASSERT(info & ZEND_MM_IS_SRUN);
1933 ZEND_ASSERT(info & ZEND_MM_IS_SRUN);
1934 ZEND_ASSERT(!(info & ZEND_MM_IS_LRUN));
1936 ZEND_ASSERT(ZEND_MM_SRUN_BIN_NUM(info) == i);
1955 ZEND_ASSERT(page_offset != 0);
1958 ZEND_ASSERT(info & ZEND_MM_IS_SRUN);
1962 ZEND_ASSERT(info & ZEND_MM_IS_SRUN);
1963 ZEND_ASSERT(!(info & ZEND_MM_IS_LRUN));
1965 ZEND_ASSERT(ZEND_MM_SRUN_BIN_NUM(info) == i);
[all …]
H A Dzend_hash.c29 # define HT_ASSERT(c) ZEND_ASSERT(c)
261 ZEND_ASSERT(ht->u.flags & HASH_FLAG_PACKED); in zend_hash_extend()
269 ZEND_ASSERT(!(ht->u.flags & HASH_FLAG_PACKED)); in zend_hash_extend()
371 ZEND_ASSERT(idx != (uint32_t)-1); in zend_hash_iterator_pos()
393 ZEND_ASSERT(idx != (uint32_t)-1); in zend_hash_iterator_pos_ex()
416 ZEND_ASSERT(idx != (uint32_t)-1); in zend_hash_iterator_del()
518 ZEND_ASSERT(idx < HT_IDX_TO_HASH(ht->nTableSize)); in zend_hash_str_find_bucket()
576 ZEND_ASSERT(&p->val != pData); in _zend_hash_add_or_update_i()
587 ZEND_ASSERT(&p->val != pData); in _zend_hash_add_or_update_i()
802 ZEND_ASSERT(&p->val != pData); in _zend_hash_index_add_or_update_i()
[all …]
H A Dzend_gc.c219 ZEND_ASSERT(GC_TYPE(ref) == IS_ARRAY || GC_TYPE(ref) == IS_OBJECT); in gc_possible_root()
220 ZEND_ASSERT(EXPECTED(GC_REF_GET_COLOR(ref) == GC_BLACK)); in gc_possible_root()
221 ZEND_ASSERT(!GC_ADDRESS(GC_INFO(ref))); in gc_possible_root()
288 ZEND_ASSERT(0); in gc_find_additional_buffer()
296 ZEND_ASSERT(GC_ADDRESS(GC_INFO(ref))); in gc_remove_from_buffer()
H A Dzend_string.c162 ZEND_ASSERT(GC_FLAGS(p->key) & IS_STR_PERSISTENT); in zend_interned_strings_snapshot_int()
H A Dzend_objects.c76 ZEND_ASSERT(guards != NULL); in zend_object_std_dtor()
H A Dzend_ast.c779 ZEND_ASSERT(Z_TYPE_P(zv) == IS_STRING); in zend_ast_export_encaps_list()
879 ZEND_ASSERT(ast->kind == ZEND_AST_IF_ELEM); in zend_ast_export_if_stmt()
1043 ZEND_ASSERT(0); in zend_ast_export_ex()
1240 ZEND_ASSERT(ast->child[0]->kind == ZEND_AST_ZVAL); in zend_ast_export_ex()
1242 ZEND_ASSERT(Z_TYPE_P(zv) == IS_STRING); in zend_ast_export_ex()
1490 ZEND_ASSERT(ast->child[0]->kind == ZEND_AST_CONST_DECL); in zend_ast_export_ex()
H A Dzend_closures.c145 ZEND_ASSERT(0); in ZEND_METHOD()
597 ZEND_ASSERT(nested->std.ce == zend_ce_closure); in zend_create_closure()
/PHP-7.0/ext/opcache/
H A Dzend_persist.c120 ZEND_ASSERT(((zend_uintptr_t)ZCG(mem) & 0x7) == 0); /* should be 8 byte aligned */ in zend_hash_persist()
148 ZEND_ASSERT(((zend_uintptr_t)ZCG(mem) & 0x7) == 0); /* should be 8 byte aligned */ in zend_hash_persist()
202 ZEND_ASSERT(((zend_uintptr_t)ZCG(mem) & 0x7) == 0); /* should be 8 byte aligned */ in zend_hash_persist_immutable()
229 ZEND_ASSERT(((zend_uintptr_t)ZCG(mem) & 0x7) == 0); /* should be 8 byte aligned */ in zend_hash_persist_immutable()
504 ZEND_ASSERT(orig_literals != NULL); in zend_persist_op_array_ex()
521 ZEND_ASSERT(persist_ptr != NULL); in zend_persist_op_array_ex()
587 ZEND_ASSERT(new_name != NULL); in zend_persist_op_array_ex()
609 ZEND_ASSERT(arg_info != NULL); in zend_persist_op_array_ex()
644 ZEND_ASSERT(op_array->doc_comment != NULL); in zend_persist_op_array_ex()
663 ZEND_ASSERT(persist_ptr != NULL); in zend_persist_op_array_ex()
[all …]
H A Dzend_accelerator_util_funcs.c248 ZEND_ASSERT((source->u.flags & HASH_FLAG_PACKED) == 0); in zend_hash_clone_constants()
293 ZEND_ASSERT(!(source->u.flags & HASH_FLAG_PACKED)); in zend_hash_clone_methods()
311 ZEND_ASSERT(p->key != NULL); in zend_hash_clone_methods()
351 ZEND_ASSERT(!(source->u.flags & HASH_FLAG_PACKED)); in zend_hash_clone_prop_info()
369 ZEND_ASSERT(p->key != NULL); in zend_hash_clone_prop_info()
534 ZEND_ASSERT(p->key); in zend_accel_function_hash_copy()
578 ZEND_ASSERT(p->key); in zend_accel_function_hash_copy_from_shm()
621 ZEND_ASSERT(p->key); in zend_accel_class_hash_copy()
H A Dzend_file_cache.c103 ZEND_ASSERT(IS_UNSERIALIZED(ptr)); \
109 ZEND_ASSERT(IS_SERIALIZED(ptr)); \
118 ZEND_ASSERT(IS_UNSERIALIZED(ptr)); \
133 ZEND_ASSERT(IS_SERIALIZED(ptr)); \
/PHP-7.0/sapi/phpdbg/
H A Dphpdbg_utils.h105 ZEND_ASSERT(ex); in phpdbg_user_execute_data()
H A Dphpdbg_watch.c199ZEND_ASSERT(((watch->flags & PHPDBG_WATCH_RECURSIVE) == 0) ^ ((watch->flags & (PHPDBG_WATCH_IMPLIC… in phpdbg_add_watch_collision()
312 ZEND_ASSERT(parent->type == WATCH_ON_ZVAL); in phpdbg_get_refcount_watch()
458 ZEND_ASSERT(watch->type == WATCH_ON_HASHTABLE); in phpdbg_create_recursive_ht_watch()
492 ZEND_ASSERT(watch->type == WATCH_ON_ZVAL); in phpdbg_create_recursive_zval_watch()
529 ZEND_ASSERT(!(parent->flags & PHPDBG_WATCH_RECURSIVE)); in phpdbg_delete_implicit_parents()
530 ZEND_ASSERT(parent->flags & PHPDBG_WATCH_IMPLICIT); in phpdbg_delete_implicit_parents()
/PHP-7.0/ext/opcache/Optimizer/
H A Dzend_optimizer.c423 ZEND_ASSERT(m->opcode == ZEND_FREE && ZEND_OP1_TYPE(m) == type && ZEND_OP1(m).var == var); in zend_optimizer_replace_by_const()
441 ZEND_ASSERT(opline->opcode == ZEND_FREE); in zend_optimizer_replace_by_const()
461 ZEND_ASSERT(0); in zend_optimizer_replace_by_const()
471 ZEND_ASSERT((opline + 1)->opcode == ZEND_RETURN || (opline + 1)->opcode == ZEND_RETURN_BY_REF); in zend_optimizer_replace_by_const()
H A Doptimize_func_calls.c101 ZEND_ASSERT(0); in optimize_func_calls()
/PHP-7.0/sapi/fpm/fpm/
H A Dfpm_php_trace.c109 ZEND_ASSERT(0); in fpm_php_trace_dump()
/PHP-7.0/ext/standard/
H A Drandom.c120 ZEND_ASSERT(read_bytes == 0); in php_random_bytes()

Completed in 110 milliseconds

123