Home
last modified time | relevance | path

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

12345678910

/php-src/Zend/
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); in zend_enum_from_base()
545 ZEND_ASSERT(ZSTR_IS_INTERNED(class_name)); in create_enum_case_ast()
551 ZEND_ASSERT(ZSTR_IS_INTERNED(case_name)); in create_enum_case_ast()
558 ZEND_ASSERT(!Z_REFCOUNTED_P(value)); in create_enum_case_ast()
605 ZEND_ASSERT(c && "Must be a valid enum case"); in zend_enum_get_case()
[all …]
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_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_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()
539 ZEND_ASSERT(zv); in zend_weakmap_get_object_key_entry_gc()
547 ZEND_ASSERT(zv); in zend_weakmap_get_object_key_entry_gc()
574 ZEND_ASSERT(zv); in zend_weakmap_get_object_entry_gc()
581 ZEND_ASSERT(zv); in zend_weakmap_get_object_entry_gc()
608 ZEND_ASSERT(iter->ht_iter != (uint32_t) -1); in zend_weakmap_iterator_get_pos_ptr()
[all …]
H A Dzend_call_stack.c102 ZEND_ASSERT(EG(max_allowed_stack_size) > 0); in zend_call_stack_init()
133 ZEND_ASSERT(!zend_call_stack_is_main_thread()); in zend_call_stack_get_linux_pthread()
183 ZEND_ASSERT(zend_call_stack_is_main_thread()); in zend_call_stack_get_linux_proc_maps()
279 ZEND_ASSERT(!zend_call_stack_is_main_thread()); in zend_call_stack_get_freebsd_pthread()
319 ZEND_ASSERT(zend_call_stack_is_main_thread()); in zend_call_stack_get_freebsd_sysctl()
406 ZEND_ASSERT(result_size >= sizeof(uncommitted_region)); in zend_call_stack_get_win32()
410 ZEND_ASSERT(result_size >= sizeof(uncommitted_region)); in zend_call_stack_get_win32()
415 ZEND_ASSERT(stack->max_size > guard_region.RegionSize); in zend_call_stack_get_win32()
420 ZEND_ASSERT(stack->max_size > page_size); in zend_call_stack_get_win32()
H A Dzend_gc.c386 ZEND_ASSERT(idx < GC_G(first_unused)); in gc_decompress()
399 ZEND_ASSERT(GC_HAS_UNUSED()); in gc_fetch_unused()
402 ZEND_ASSERT(GC_IS_UNUSED(root->ref)); in gc_fetch_unused()
417 ZEND_ASSERT(GC_HAS_NEXT_UNUSED()); in gc_fetch_next_unused()
640 ZEND_ASSERT(GC_INFO(ref) == 0); in gc_possible_root_when_full()
699 ZEND_ASSERT(GC_INFO(ref) == 0); in gc_possible_root()
733 ZEND_ASSERT(GC_REF_ADDRESS(ref) == 0); in gc_extra_root()
771 ZEND_ASSERT(idx); in gc_remove_from_buffer()
797 ZEND_ASSERT(Z_TYPE_P(zv) == IS_PTR); in gc_scan_black()
1303 ZEND_ASSERT(ht != &EG(symbol_table)); in gc_scan()
[all …]
H A Dzend_objects_API.c166 ZEND_ASSERT(GC_REFCOUNT(object) == 0); in zend_objects_store_del()
194 ZEND_ASSERT(EG(objects_store).object_buckets != NULL); in zend_objects_store_del()
195 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()
321 ZEND_ASSERT(info[i].num_related == 1); in zend_optimizer_compact_literals()
333 ZEND_ASSERT(info[i].num_related == 1); in zend_optimizer_compact_literals()
345 ZEND_ASSERT(info[i].num_related == 1); in zend_optimizer_compact_literals()
371 ZEND_ASSERT(info[i].num_related == 2); in zend_optimizer_compact_literals()
395 ZEND_ASSERT(info[i].num_related == 1); in zend_optimizer_compact_literals()
447 ZEND_ASSERT(info[i].num_related == 1); in zend_optimizer_compact_literals()
[all …]
/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/dom/
H A Dnamespace_compat.c118 ZEND_ASSERT(prefix != NULL); in dom_create_owned_ns()
119 ZEND_ASSERT(uri != NULL); in dom_create_owned_ns()
204 ZEND_ASSERT(ns != NULL); in php_dom_libxml_ns_mapper_store_and_normalize_parsed_ns()
258 ZEND_ASSERT(xmlns_ns != NULL); in php_dom_ns_compat_mark_attribute()
301 ZEND_ASSERT(ns != NULL); in php_dom_ns_is_fast_ex()
319 ZEND_ASSERT(nodep != NULL); in php_dom_ns_is_fast()
329 ZEND_ASSERT(nodep != NULL); in php_dom_ns_is_html_and_document_is_html()
336 ZEND_ASSERT(attrp != NULL); in php_dom_reconcile_attribute_namespace_after_insertion()
441 ZEND_ASSERT(node != base); in php_dom_libxml_reconcile_modern()
460 ZEND_ASSERT(node != NULL); in php_dom_get_in_scope_ns()
[all …]
H A Dphp_dom.h230 ZEND_ASSERT(cache_tag != NULL); in php_dom_is_cache_tag_stale_from_doc_ptr()
231 ZEND_ASSERT(doc_ptr != NULL); in php_dom_is_cache_tag_stale_from_doc_ptr()
242 ZEND_ASSERT(node != NULL); in php_dom_is_cache_tag_stale_from_node()
256 ZEND_ASSERT(cache_tag != NULL); in php_dom_mark_cache_tag_up_to_date_from_node()
268 ZEND_ASSERT(cache_tag != NULL); in php_dom_mark_cache_tag_up_to_date_from_doc_ref()
269 ZEND_ASSERT(document != NULL); in php_dom_mark_cache_tag_up_to_date_from_doc_ref()
275 ZEND_ASSERT(node != NULL); in php_dom_follow_spec_node()
H A Dxml_serializer.c161 ZEND_ASSERT(prefix != NULL); in dom_xml_local_prefix_map_add()
171 ZEND_ASSERT(prefix != NULL); in dom_xml_local_prefix_map_find()
207 ZEND_ASSERT(map->ht != NULL); in dom_xml_ns_prefix_map_add()
208 ZEND_ASSERT(prefix != NULL); in dom_xml_ns_prefix_map_add()
254 ZEND_ASSERT(map->ht != NULL); in dom_get_candidates_list()
265 ZEND_ASSERT(prefix != NULL); in dom_prefix_in_candidate_list()
290 ZEND_ASSERT(ns != NULL); in dom_prefix_found_in_ns_prefix_map()
334 ZEND_ASSERT(prefix_definition != NULL); in dom_recording_the_namespace_information()
338 ZEND_ASSERT(namespace_definition != NULL); in dom_recording_the_namespace_information()
404 ZEND_ASSERT(prefix != NULL); in dom_retrieve_a_preferred_prefix_string()
[all …]
H A Dxml_common.h88 ZEND_ASSERT(intern->document != NULL); in php_dom_get_ns_mapper()
120 ZEND_ASSERT(intern != NULL); in php_dom_follow_spec_intern()
/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.c43 ZEND_ASSERT(pce->ce_flags & ZEND_ACC_LINKED); in spl_add_interfaces()
59 ZEND_ASSERT(trait); in spl_add_traits()
69 ZEND_ASSERT(pce); in spl_add_classes()
/php-src/ext/mysqli/
H A Dmysqli_prop.c79 ZEND_ASSERT(p);\
94 ZEND_ASSERT(p);\
96 ZEND_ASSERT(l < ZEND_LONG_MAX);\
106 ZEND_ASSERT(p);\
121 ZEND_ASSERT(p);\
123 ZEND_ASSERT(c);\
177 ZEND_ASSERT(mysql); in link_affected_rows_read()
252 ZEND_ASSERT(p); in MYSQLI_MAP_PROPERTY_FUNC_LONG()
300 ZEND_ASSERT(p); in MYSQLI_MAP_PROPERTY_FUNC_LONG()
317 ZEND_ASSERT(p); in stmt_affected_rows_read()
/php-src/ext/opcache/
H A Dzend_persist.c269 ZEND_ASSERT(Z_TYPE_P(z) < IS_STRING); in zend_persist_zval()
429 ZEND_ASSERT(op_array->literals != NULL); in zend_persist_op_array_ex()
433 ZEND_ASSERT(op_array->filename != NULL); in zend_persist_op_array_ex()
441 ZEND_ASSERT(arg_info != NULL); in zend_persist_op_array_ex()
470 ZEND_ASSERT(op_array->vars != NULL); in zend_persist_op_array_ex()
495 ZEND_ASSERT(p->key != NULL); in zend_persist_op_array_ex()
894 ZEND_ASSERT(p->key != NULL); in zend_persist_class_entry()
929 ZEND_ASSERT(p->key != NULL); in zend_persist_class_entry()
938 ZEND_ASSERT(p->key != NULL); in zend_persist_class_entry()
1238 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()
338 ZEND_ASSERT(op_array->type == ZEND_INTERNAL_FUNCTION); in zend_persist_class_method_calc()
434 ZEND_ASSERT(p->key != NULL); in zend_persist_class_entry_calc()
458 ZEND_ASSERT(p->key != NULL); in zend_persist_class_entry_calc()
466 ZEND_ASSERT(p->key != NULL); in zend_persist_class_entry_calc()
570 ZEND_ASSERT(p->key != NULL); in zend_accel_persist_class_table_calc()
628 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.cpp109 ZEND_ASSERT(idx == 1 && "We checked that there are two elements above"); in PHP_FUNCTION()
119 ZEND_ASSERT(idx == 1 && "We checked that there are two elements above"); in PHP_FUNCTION()
124 ZEND_ASSERT(idx == 2 && "We checked that there are two elements above"); in PHP_FUNCTION()
/php-src/ext/opcache/jit/
H A Dzend_jit_ir.c505 ZEND_ASSERT(addr != 0); in jit_CONST_FUNC_PROTO()
1414 ZEND_ASSERT(phi->pi < 0); in zend_jit_gen_phi()
1416 ZEND_ASSERT(merge); in zend_jit_gen_phi()
3361 ZEND_ASSERT(if_ref); in jit_IF_TRUE_FALSE_ex()
3613 ZEND_ASSERT(ref == 1); in zend_jit_bb_start()
3942 ZEND_ASSERT(ref); in zend_jit_recv_entry()
13696 ZEND_ASSERT(obj_ref);
13931 ZEND_ASSERT(prop_ref);
14131 ZEND_ASSERT(obj_ref);
14398 ZEND_ASSERT(obj_ref);
[all …]
/php-src/ext/standard/
H A Dmetaphone.c84 ZEND_ASSERT(c >= 'A' && c <= 'Z'); in encode()
177 ZEND_ASSERT(word != NULL); in metaphone()
178 ZEND_ASSERT(max_phonemes >= 0); in metaphone()

Completed in 135 milliseconds

12345678910