Home
last modified time | relevance | path

Searched refs:constant_name (Results 1 – 9 of 9) sorted by relevance

/PHP-8.2/Zend/tests/
H A Dbug44827.phpt20 define(): Argument #1 ($constant_name) cannot be a class constant
21 define(): Argument #1 ($constant_name) cannot be a class constant
H A D008.phpt28 TypeError: define(): Argument #1 ($constant_name) must be of type string, array given
/PHP-8.2/Zend/
H A Dzend_constants.c312 ZEND_API zval *zend_get_class_constant_ex(zend_string *class_name, zend_string *constant_name, zend… in zend_get_class_constant_ex() argument
349 c = zend_hash_find_ptr(CE_CONSTANTS_TABLE(ce), constant_name); in zend_get_class_constant_ex()
352 …zend_throw_error(NULL, "Undefined constant %s::%s", ZSTR_VAL(class_name), ZSTR_VAL(constant_name)); in zend_get_class_constant_ex()
367 …LL, "Cannot access trait constant %s::%s directly", ZSTR_VAL(class_name), ZSTR_VAL(constant_name)); in zend_get_class_constant_ex()
380 … "Cannot declare self-referencing constant %s::%s", ZSTR_VAL(class_name), ZSTR_VAL(constant_name)); in zend_get_class_constant_ex()
416 zend_string *constant_name = zend_string_init(colon + 1, const_name_len, 0); in zend_get_constant_ex() local
418 zval *ret_constant = zend_get_class_constant_ex(class_name, constant_name, scope, flags); in zend_get_constant_ex()
421 zend_string_efree(constant_name); in zend_get_constant_ex()
502 const char *constant_name = colon + 1; in zend_get_constant_ex() local
513 memcpy(lcname + prefix_len + 1, constant_name, const_name_len + 1); in zend_get_constant_ex()
[all …]
H A Dzend_builtin_functions.stub.php36 function define(string $constant_name, mixed $value, bool $case_insensitive = false): bool {} argument
38 function defined(string $constant_name): bool {} argument
H A Dzend_builtin_functions_arginfo.h41 ZEND_ARG_TYPE_INFO(0, constant_name, IS_STRING, 0)
47 ZEND_ARG_TYPE_INFO(0, constant_name, IS_STRING, 0)
H A Dzend_constants.h80 ZEND_API zval *zend_get_class_constant_ex(zend_string *class_name, zend_string *constant_name, zend…
H A Dzend_inheritance.c2237 …ry *ce, zend_class_entry **traits, size_t current_trait, zend_string *constant_name, zend_class_en… in find_first_constant_definition() argument
2251 && zend_hash_exists(&traits[i]->constants_table, constant_name)) { in find_first_constant_definition()
2294 zend_string *constant_name; in zend_do_traits_constant_binding() local
2301 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&traits[i]->constants_table, constant_name, constant) { in zend_do_traits_constant_binding()
2302 if (do_trait_constant_check(ce, constant, constant_name, traits, i)) { in zend_do_traits_constant_binding()
2326 zend_hash_update_ptr(&ce->constants_table, constant_name, constant); in zend_do_traits_constant_binding()
/PHP-8.2/tests/lang/
H A Dbug44827.phpt23 define(): Argument #1 ($constant_name) cannot be a class constant
/PHP-8.2/Zend/tests/nullsafe_operator/
H A D013.phpt49 Deprecated: defined(): Passing null to parameter #1 ($constant_name) of type string is deprecated i…

Completed in 58 milliseconds