Lines Matching refs:constant
830 …ss_constant_type_error(const zend_class_constant *c, const zend_string *name, const zval *constant) in zend_verify_class_constant_type_error() argument
835 zend_zval_type_name(constant), ZSTR_VAL(c->ce->name), ZSTR_VAL(name), ZSTR_VAL(type_str)); in zend_verify_class_constant_type_error()
1521 …atic zend_always_inline bool zend_check_class_constant_type(zend_class_constant *c, zval *constant) in zend_check_class_constant_type() argument
1523 ZEND_ASSERT(!Z_ISREF_P(constant)); in zend_check_class_constant_type()
1524 if (EXPECTED(ZEND_TYPE_CONTAINS_CODE(c->type, Z_TYPE_P(constant)))) { in zend_check_class_constant_type()
1528 …MASK(c->type) & MAY_BE_STATIC) || ZEND_TYPE_IS_COMPLEX(c->type)) && Z_TYPE_P(constant) == IS_OBJECT in zend_check_class_constant_type()
1529 …end_check_and_resolve_property_or_class_constant_class_type(c->ce, c->type, Z_OBJCE_P(constant))) { in zend_check_class_constant_type()
1535 return zend_verify_scalar_type_hint(type_mask, constant, true, false); in zend_check_class_constant_type()
1538 …ne zend_verify_class_constant_type(zend_class_constant *c, const zend_string *name, zval *constant) in zend_verify_class_constant_type() argument
1540 if (!zend_check_class_constant_type(c, constant)) { in zend_verify_class_constant_type()
1541 zend_verify_class_constant_type_error(c, name, constant); in zend_verify_class_constant_type()