Lines Matching refs:ZEND_ASSERT
181 ZEND_ASSERT(!(ce->ce_flags & ZEND_ACC_RESOLVED_INTERFACES)); in zend_enum_add_interfaces()
198 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()
242 ZEND_ASSERT(ce->enum_backing_type == IS_STRING); in zend_enum_build_backed_enum_table()
306 ZEND_ASSERT(ce->enum_backing_type == IS_STRING); in zend_enum_get_case_by_value()
307 ZEND_ASSERT(string_key != NULL); in zend_enum_get_case_by_value()
321 ZEND_ASSERT(ce->enum_backing_type == IS_STRING); in zend_enum_get_case_by_value()
329 ZEND_ASSERT(Z_TYPE_P(case_name_zv) == IS_STRING); in zend_enum_get_case_by_value()
331 ZEND_ASSERT(c != NULL); in zend_enum_get_case_by_value()
355 ZEND_ASSERT(ce->enum_backing_type == IS_STRING); in zend_enum_from_base()
383 ZEND_ASSERT(try_from); in zend_enum_from_base()
496 ZEND_ASSERT(type == IS_UNDEF || type == IS_LONG || type == IS_STRING); in zend_register_internal_enum()
542 ZEND_ASSERT(ZSTR_IS_INTERNED(class_name)); in create_enum_case_ast()
549 ZEND_ASSERT(ZSTR_IS_INTERNED(case_name)); in create_enum_case_ast()
557 ZEND_ASSERT(!Z_REFCOUNTED_P(value)); in create_enum_case_ast()
570 ZEND_ASSERT(ce->enum_backing_type == Z_TYPE_P(value)); in zend_enum_add_case()
585 ZEND_ASSERT(ce->enum_backing_type == IS_UNDEF); in zend_enum_add_case()
605 ZEND_ASSERT(c && "Must be a valid enum case"); in zend_enum_get_case()
606 ZEND_ASSERT(ZEND_CLASS_CONST_FLAGS(c) & ZEND_CLASS_CONST_IS_CASE); in zend_enum_get_case()
613 ZEND_ASSERT(Z_TYPE(c->value) == IS_OBJECT); in zend_enum_get_case()