Home
last modified time | relevance | path

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

12345678910

/php-src/Zend/
H A Dzend_lazy_objects.c98 ZEND_ASSERT(zend_object_is_lazy(obj)); in zend_lazy_object_set_info()
101 ZEND_ASSERT(zv); in zend_lazy_object_set_info()
107 ZEND_ASSERT(zend_object_is_lazy(obj)); in zend_lazy_object_get_info()
110 ZEND_ASSERT(info); in zend_lazy_object_get_info()
165 ZEND_ASSERT(res == SUCCESS); in zend_lazy_object_del_info()
170 ZEND_ASSERT(zend_object_is_lazy(obj)); in zend_lazy_object_decr_lazy_props()
264 ZEND_ASSERT(EG(exception)); in zend_object_make_lazy()
378 ZEND_ASSERT(zend_object_is_lazy(obj)); in zend_lazy_object_mark_as_initialized()
553 ZEND_ASSERT(zend_object_is_lazy(obj)); in zend_lazy_object_init()
669 ZEND_ASSERT(zend_object_is_lazy(obj)); in zend_lazy_object_realize()
[all …]
H A Dzend_variables.c56 ZEND_ASSERT(GC_TYPE(p) <= IS_CONSTANT_AST); in rc_dtor_func()
64 ZEND_ASSERT(!ZSTR_IS_INTERNED(str)); in zend_string_destroy()
65 ZEND_ASSERT(GC_REFCOUNT(str) == 0); in zend_string_destroy()
66 ZEND_ASSERT(!(GC_FLAGS(str) & IS_STR_PERSISTENT)); in zend_string_destroy()
73 ZEND_ASSERT(!ZEND_REF_HAS_TYPE_SOURCES(ref)); in zend_reference_destroy()
98 ZEND_ASSERT(!ZSTR_IS_INTERNED(str)); in zval_internal_ptr_dtor()
99 ZEND_ASSERT((GC_FLAGS(str) & IS_STR_PERSISTENT)); in zval_internal_ptr_dtor()
129 ZEND_ASSERT(!ZSTR_IS_INTERNED(Z_STR_P(zvalue))); in zval_copy_ctor_func()
H A Dzend_enum.c198 ZEND_ASSERT(ce->ce_flags & ZEND_ACC_ENUM); in zend_enum_build_backed_enum_table()
199 ZEND_ASSERT(ce->type == ZEND_USER_CLASS); in zend_enum_build_backed_enum_table()
202 ZEND_ASSERT(backing_type != IS_UNDEF); in zend_enum_build_backed_enum_table()
307 ZEND_ASSERT(string_key != NULL); in zend_enum_get_case_by_value()
331 ZEND_ASSERT(c != NULL); in zend_enum_get_case_by_value()
383 ZEND_ASSERT(try_from); in zend_enum_from_base()
549 ZEND_ASSERT(ZSTR_IS_INTERNED(class_name)); in create_enum_case_ast()
556 ZEND_ASSERT(ZSTR_IS_INTERNED(case_name)); in create_enum_case_ast()
564 ZEND_ASSERT(!Z_REFCOUNTED_P(value)); in create_enum_case_ast()
612 ZEND_ASSERT(c && "Must be a valid enum case"); in zend_enum_get_case()
[all …]
H A Dzend_variables.h73 ZEND_ASSERT(Z_TYPE_P(zval_ptr) == IS_STRING); in zval_ptr_dtor_str()
74 ZEND_ASSERT(!ZSTR_IS_INTERNED(Z_STR_P(zval_ptr))); in zval_ptr_dtor_str()
75 ZEND_ASSERT(!(GC_FLAGS(Z_STR_P(zval_ptr)) & IS_STR_PERSISTENT)); in zval_ptr_dtor_str()
H A Dzend_enum.h51 ZEND_ASSERT(zobj->ce->ce_flags & ZEND_ACC_ENUM); in zend_enum_fetch_case_name()
57 ZEND_ASSERT(zobj->ce->ce_flags & ZEND_ACC_ENUM); in zend_enum_fetch_case_value()
58 ZEND_ASSERT(zobj->ce->enum_backing_type != IS_UNDEF); in zend_enum_fetch_case_value()
H A Dzend_weakrefs.c76 ZEND_ASSERT(tag == ZEND_WEAKREF_TAG_MAP); in zend_weakref_unref_single()
126 ZEND_ASSERT(tagged_ptr && "Weakref not registered?"); in zend_weakref_unregister()
131 ZEND_ASSERT(tagged_ptr == payload); in zend_weakref_unregister()
148 ZEND_ASSERT(old_payload && "Weakref not registered?"); in zend_weakref_unregister()
149 ZEND_ASSERT(old_payload == payload); in zend_weakref_unregister()
547 ZEND_ASSERT(zv); in zend_weakmap_get_object_key_entry_gc()
555 ZEND_ASSERT(zv); in zend_weakmap_get_object_key_entry_gc()
582 ZEND_ASSERT(zv); in zend_weakmap_get_object_entry_gc()
589 ZEND_ASSERT(zv); in zend_weakmap_get_object_entry_gc()
616 ZEND_ASSERT(iter->ht_iter != (uint32_t) -1); in zend_weakmap_iterator_get_pos_ptr()
[all …]
H A Dzend_call_stack.c108 ZEND_ASSERT(EG(max_allowed_stack_size) > 0); in zend_call_stack_init()
139 ZEND_ASSERT(!zend_call_stack_is_main_thread()); in zend_call_stack_get_linux_pthread()
193 ZEND_ASSERT(zend_call_stack_is_main_thread()); in zend_call_stack_get_linux_proc_maps()
296 ZEND_ASSERT(!zend_call_stack_is_main_thread()); in zend_call_stack_get_freebsd_pthread()
336 ZEND_ASSERT(zend_call_stack_is_main_thread()); in zend_call_stack_get_freebsd_sysctl()
423 ZEND_ASSERT(result_size >= sizeof(uncommitted_region)); in zend_call_stack_get_win32()
427 ZEND_ASSERT(result_size >= sizeof(uncommitted_region)); in zend_call_stack_get_win32()
432 ZEND_ASSERT(stack->max_size > guard_region.RegionSize); in zend_call_stack_get_win32()
437 ZEND_ASSERT(stack->max_size > page_size); in zend_call_stack_get_win32()
H A Dzend_weakrefs.h47 ZEND_ASSERT(zend_hash_num_elements(ht) == 0); in zend_weakrefs_hash_destroy()
62 ZEND_ASSERT(((uintptr_t)object) % ZEND_MM_ALIGNMENT == 0); in zend_object_to_weakref_key()
H A Dzend_gc.c396 ZEND_ASSERT(idx < GC_G(first_unused)); in gc_decompress()
409 ZEND_ASSERT(GC_HAS_UNUSED()); in gc_fetch_unused()
412 ZEND_ASSERT(GC_IS_UNUSED(root->ref)); in gc_fetch_unused()
427 ZEND_ASSERT(GC_HAS_NEXT_UNUSED()); in gc_fetch_next_unused()
660 ZEND_ASSERT(GC_INFO(ref) == 0); in gc_possible_root_when_full()
719 ZEND_ASSERT(GC_INFO(ref) == 0); in gc_possible_root()
753 ZEND_ASSERT(GC_REF_ADDRESS(ref) == 0); in gc_extra_root()
791 ZEND_ASSERT(idx); in gc_remove_from_buffer()
1323 ZEND_ASSERT(ht != &EG(symbol_table)); in gc_scan()
1653 ZEND_ASSERT(GC_IS_ROOT(ref)); in gc_collect_roots()
[all …]
H A Dzend_fibers.c404 ZEND_ASSERT(zend_fiber_switch_blocking && "Fiber switching was not blocked"); in zend_fiber_switch_unblock()
446 ZEND_ASSERT(context->handle != NULL && "make_fcontext() never returns NULL"); in zend_fiber_init_context()
478 ZEND_ASSERT(from && "From fiber context must be present"); in zend_fiber_switch_context()
479 ZEND_ASSERT(to != from && "Cannot switch into the running fiber context"); in zend_fiber_switch_context()
482 ZEND_ASSERT(( in zend_fiber_switch_context()
565 ZEND_ASSERT(!transfer->flags && "No flags should be set on initial transfer"); in zend_fiber_execute()
695 ZEND_ASSERT(!(fiber->flags & ZEND_FIBER_FLAG_DESTROYED)); in zend_fiber_suspend_internal()
697 ZEND_ASSERT(fiber->caller != NULL); in zend_fiber_suspend_internal()
709 ZEND_ASSERT(fiber->context.status == ZEND_FIBER_STATUS_INIT); in zend_fiber_start()
726 ZEND_ASSERT(fiber->context.status == ZEND_FIBER_STATUS_SUSPENDED && fiber->caller == NULL); in zend_fiber_resume()
[all …]
H A Dzend_objects_API.c162 ZEND_ASSERT(GC_REFCOUNT(object) == 0); in zend_objects_store_del()
188 ZEND_ASSERT(EG(objects_store).object_buckets != NULL); in zend_objects_store_del()
189 ZEND_ASSERT(IS_OBJ_VALID(EG(objects_store).object_buckets[handle])); in zend_objects_store_del()
/php-src/Zend/Optimizer/
H A Dzend_worklist.h42 ZEND_ASSERT(len >= 0); in zend_worklist_stack_prepare()
51 ZEND_ASSERT(stack->len < stack->capacity); in zend_worklist_stack_push()
57 ZEND_ASSERT(stack->len); in zend_worklist_stack_peek()
63 ZEND_ASSERT(stack->len); in zend_worklist_stack_pop()
85 ZEND_ASSERT(len >= 0); in zend_worklist_prepare()
97 ZEND_ASSERT(i >= 0 && i < worklist->stack.capacity); in zend_worklist_push()
H A Dcompact_literals.c70 ZEND_ASSERT(ZEND_TYPE_IS_UNION(arg_info->type)); in type_num_classes()
78 ZEND_ASSERT(!ZEND_TYPE_HAS_LIST(*list_type)); in type_num_classes()
128 ZEND_ASSERT(Z_TYPE_P(literal) == IS_STRING); in create_str_cache_key()
147 ZEND_ASSERT(0 && "Currently not needed"); in create_str_cache_key()
324 ZEND_ASSERT(info[i].num_related == 1); in zend_optimizer_compact_literals()
336 ZEND_ASSERT(info[i].num_related == 1); in zend_optimizer_compact_literals()
348 ZEND_ASSERT(info[i].num_related == 1); in zend_optimizer_compact_literals()
374 ZEND_ASSERT(info[i].num_related == 2); in zend_optimizer_compact_literals()
398 ZEND_ASSERT(info[i].num_related == 1); in zend_optimizer_compact_literals()
450 ZEND_ASSERT(info[i].num_related == 1); in zend_optimizer_compact_literals()
[all …]
/php-src/ext/dom/
H A Dnamespace_compat.c99 ZEND_ASSERT(prefix != NULL); in dom_create_owned_ns()
100 ZEND_ASSERT(uri != NULL); in dom_create_owned_ns()
185 ZEND_ASSERT(ns != NULL); in php_dom_libxml_ns_mapper_store_and_normalize_parsed_ns()
239 ZEND_ASSERT(xmlns_ns != NULL); in php_dom_ns_compat_mark_attribute()
282 ZEND_ASSERT(ns != NULL); in php_dom_ns_is_fast_ex()
303 ZEND_ASSERT(nodep != NULL); in php_dom_ns_is_fast()
313 ZEND_ASSERT(nodep != NULL); in php_dom_ns_is_html_and_document_is_html()
320 ZEND_ASSERT(attrp != NULL); in php_dom_reconcile_attribute_namespace_after_insertion()
414 ZEND_ASSERT(node != base); in php_dom_libxml_reconcile_modern()
428 ZEND_ASSERT(node != NULL); in php_dom_get_in_scope_ns()
[all …]
H A Dinfra.c35 ZEND_ASSERT(!ZSTR_IS_INTERNED(input)); in dom_strip_and_collapse_ascii_whitespace()
36 ZEND_ASSERT(GC_REFCOUNT(input) == 1); in dom_strip_and_collapse_ascii_whitespace()
H A Dphp_dom.h240 ZEND_ASSERT(doc_ptr != NULL); in php_dom_is_cache_tag_stale_from_doc_ptr()
246 ZEND_ASSERT(node != NULL); in php_dom_is_cache_tag_stale_from_node()
260 ZEND_ASSERT(cache_tag != NULL); in php_dom_mark_cache_tag_up_to_date_from_node()
272 ZEND_ASSERT(cache_tag != NULL); in php_dom_mark_cache_tag_up_to_date_from_doc_ref()
273 ZEND_ASSERT(document != NULL); in php_dom_mark_cache_tag_up_to_date_from_doc_ref()
279 ZEND_ASSERT(node != NULL); in php_dom_follow_spec_node()
/php-src/sapi/fuzzer/
H A Dfuzzer-mbstring.c33 ZEND_ASSERT(out_len <= BufSize); in convert_encoding()
45 ZEND_ASSERT(ZSTR_LEN(str1) == ZSTR_LEN(str2)); in assert_zend_string_eql()
47 ZEND_ASSERT(ZSTR_VAL(str1)[i] == ZSTR_VAL(str2)[i]); in assert_zend_string_eql()
104 ZEND_ASSERT(errors1 == errors2); in LLVMFuzzerTestOneInput()
122 ZEND_ASSERT(!good); in LLVMFuzzerTestOneInput()
H A Dfuzzer-execute-common.h131 ZEND_ASSERT(Z_TYPE(retval) == IS_TRUE); in opcache_invalidate()
154 ZEND_ASSERT(0 && "Failed to get binary path");
/php-src/ext/session/
H A Dmod_user.c88 ZEND_ASSERT(!Z_ISUNDEF(PSF(open))); in PS_OPEN_FUNC()
116 ZEND_ASSERT(!Z_ISUNDEF(PSF(close))); in PS_CLOSE_FUNC()
149 ZEND_ASSERT(!Z_ISUNDEF(PSF(read))); in PS_READ_FUNC()
172 ZEND_ASSERT(!Z_ISUNDEF(PSF(write))); in PS_WRITE_FUNC()
190 ZEND_ASSERT(!Z_ISUNDEF(PSF(destroy))); in PS_DESTROY_FUNC()
206 ZEND_ASSERT(!Z_ISUNDEF(PSF(gc))); in PS_GC_FUNC()
/php-src/ext/spl/
H A Dspl_functions.c42 ZEND_ASSERT(pce->ce_flags & ZEND_ACC_LINKED); in spl_add_interfaces()
58 ZEND_ASSERT(trait); in spl_add_traits()
68 ZEND_ASSERT(pce); in spl_add_classes()
/php-src/ext/mysqli/
H A Dmysqli_prop.c77 ZEND_ASSERT(p);\
92 ZEND_ASSERT(p);\
94 ZEND_ASSERT(l < ZEND_LONG_MAX);\
104 ZEND_ASSERT(p);\
119 ZEND_ASSERT(p);\
121 ZEND_ASSERT(c);\
175 ZEND_ASSERT(mysql); in link_affected_rows_read()
250 ZEND_ASSERT(p); in MYSQLI_MAP_PROPERTY_FUNC_LONG()
298 ZEND_ASSERT(p); in MYSQLI_MAP_PROPERTY_FUNC_LONG()
315 ZEND_ASSERT(p); in stmt_affected_rows_read()
/php-src/ext/opcache/
H A Dzend_persist.c271 ZEND_ASSERT(Z_TYPE_P(z) < IS_STRING); in zend_persist_zval()
431 ZEND_ASSERT(op_array->literals != NULL); in zend_persist_op_array_ex()
435 ZEND_ASSERT(op_array->filename != NULL); in zend_persist_op_array_ex()
443 ZEND_ASSERT(arg_info != NULL); in zend_persist_op_array_ex()
472 ZEND_ASSERT(op_array->vars != NULL); in zend_persist_op_array_ex()
497 ZEND_ASSERT(p->key != NULL); in zend_persist_op_array_ex()
928 ZEND_ASSERT(p->key != NULL); in zend_persist_class_entry()
963 ZEND_ASSERT(p->key != NULL); in zend_persist_class_entry()
972 ZEND_ASSERT(p->key != NULL); in zend_persist_class_entry()
1272 ZEND_ASSERT(p->key != NULL); in zend_accel_persist_class_table()
[all …]
H A Dzend_persist_calc.c151 ZEND_ASSERT(Z_TYPE_P(z) < IS_STRING); in zend_persist_zval_calc()
237 ZEND_ASSERT(p->key != NULL); in zend_persist_op_array_calc_ex()
322 ZEND_ASSERT(op_array->type == ZEND_USER_FUNCTION); in zend_persist_op_array_calc()
337 ZEND_ASSERT(op_array->type == ZEND_INTERNAL_FUNCTION); in zend_persist_class_method_calc()
441 ZEND_ASSERT(p->key != NULL); in zend_persist_class_entry_calc()
465 ZEND_ASSERT(p->key != NULL); in zend_persist_class_entry_calc()
473 ZEND_ASSERT(p->key != NULL); in zend_persist_class_entry_calc()
577 ZEND_ASSERT(p->key != NULL); in zend_accel_persist_class_table_calc()
635 ZEND_ASSERT(p->key != NULL); in zend_accel_script_persist_calc()
/php-src/ext/mysqlnd/
H A Dmysqlnd_charset.c880 ZEND_ASSERT(newstr + len <= newstr_e); in mysqlnd_cset_escape_quotes()
889 ZEND_ASSERT(newstr + 2 <= newstr_e); in mysqlnd_cset_escape_quotes()
893 ZEND_ASSERT(newstr + 1 <= newstr_e); in mysqlnd_cset_escape_quotes()
922 ZEND_ASSERT(newstr + len <= newstr_e); in mysqlnd_cset_escape_slashes()
955 ZEND_ASSERT(newstr + 2 <= newstr_e); in mysqlnd_cset_escape_slashes()
960 ZEND_ASSERT(newstr + 1 <= newstr_e); in mysqlnd_cset_escape_slashes()
1023 ZEND_ASSERT(c->lowest_mb_byte == 0x100); in mysqlnd_charsets_sanity_check()
1026 ZEND_ASSERT(c->mb_valid != check_null_id); in mysqlnd_charsets_sanity_check()
1028 ZEND_ASSERT(c->lowest_mb_byte == 0x00); in mysqlnd_charsets_sanity_check()
1033 ZEND_ASSERT(ch >= c->lowest_mb_byte); in mysqlnd_charsets_sanity_check()
[all …]
/php-src/ext/intl/dateformat/
H A Ddateformat_format_object.cpp111 ZEND_ASSERT(idx == 1 && "We checked that there are two elements above"); in PHP_FUNCTION()
121 ZEND_ASSERT(idx == 1 && "We checked that there are two elements above"); in PHP_FUNCTION()
126 ZEND_ASSERT(idx == 2 && "We checked that there are two elements above"); in PHP_FUNCTION()

Completed in 109 milliseconds

12345678910