/PHP-8.4/Zend/ |
H A D | zend_constants.c | 332 c = zend_hash_find_ptr(CE_CONSTANTS_TABLE(ce), constant_name); in zend_get_class_constant_ex() 335 …zend_throw_error(NULL, "Undefined constant %s::%s", ZSTR_VAL(class_name), ZSTR_VAL(constant_name)); in zend_get_class_constant_ex() 350 …LL, "Cannot access trait constant %s::%s directly", ZSTR_VAL(class_name), ZSTR_VAL(constant_name)); in zend_get_class_constant_ex() 357 zend_deprecated_class_constant(c, constant_name); in zend_get_class_constant_ex() 377 ret = zend_update_class_constant(c, constant_name, c->ce); in zend_get_class_constant_ex() 407 zend_string *constant_name = zend_string_init(colon + 1, const_name_len, 0); in zend_get_constant_ex() local 409 zval *ret_constant = zend_get_class_constant_ex(class_name, constant_name, scope, flags); in zend_get_constant_ex() 412 zend_string_efree(constant_name); in zend_get_constant_ex() 421 const char *constant_name = colon + 1; in zend_get_constant_ex() local 432 memcpy(lcname + prefix_len + 1, constant_name, const_name_len + 1); in zend_get_constant_ex() [all …]
|
H A D | zend_builtin_functions.stub.php | 41 function define(string $constant_name, mixed $value, bool $case_insensitive = false): bool {} argument 43 function defined(string $constant_name): bool {} argument
|
H A D | zend_builtin_functions_arginfo.h | 47 ZEND_ARG_TYPE_INFO(0, constant_name, IS_STRING, 0) 53 ZEND_ARG_TYPE_INFO(0, constant_name, IS_STRING, 0)
|
H A D | zend_constants.h | 80 ZEND_API zval *zend_get_class_constant_ex(zend_string *class_name, zend_string *constant_name, zend…
|
H A D | zend_inheritance.c | 2673 …ry *ce, zend_class_entry **traits, size_t current_trait, zend_string *constant_name, const zend_cl… in find_first_constant_definition() argument 2687 && zend_hash_exists(&traits[i]->constants_table, constant_name)) { in find_first_constant_definition() 2755 zend_string *constant_name; in zend_do_traits_constant_binding() local 2762 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&traits[i]->constants_table, constant_name, constant) { in zend_do_traits_constant_binding() 2763 if (do_trait_constant_check(ce, constant, constant_name, traits, i)) { in zend_do_traits_constant_binding() 2787 zend_hash_update_ptr(&ce->constants_table, constant_name, constant); in zend_do_traits_constant_binding()
|
H A D | zend_execute.h | 65 …ALL zend_deprecated_class_constant(const zend_class_constant *c, const zend_string *constant_name);
|
H A D | zend_vm_def.h | 6020 zend_string *constant_name; variable 6068 constant_name = Z_STR_P(constant_zv); 6070 if (OP2_TYPE != IS_CONST && UNEXPECTED(zend_string_equals_literal_ci(constant_name, "class"))) { 6076 ? zend_hash_find_known_hash(CE_CONSTANTS_TABLE(ce), constant_name) 6077 : zend_hash_find(CE_CONSTANTS_TABLE(ce), constant_name); 6083 …", zend_visibility_string(ZEND_CLASS_CONST_FLAGS(c)), ZSTR_VAL(ce->name), ZSTR_VAL(constant_name)); 6090 …NULL, "Cannot access trait constant %s::%s directly", ZSTR_VAL(ce->name), ZSTR_VAL(constant_name)); 6098 zend_deprecated_class_constant(c, constant_name); 6117 if (UNEXPECTED(zend_update_class_constant(c, constant_name, c->ce) != SUCCESS)) { 6128 ZSTR_VAL(ce->name), ZSTR_VAL(constant_name));
|
H A D | zend_vm_execute.h | 7541 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER() local 7589 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER() 8701 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_TMPVARCV_HANDLER() local 8749 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_TMPVARCV_HANDLER() 25800 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_CONST_HANDLER() local 25848 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_CONST_HANDLER() 26369 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_TMPVARCV_HANDLER() local 26417 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_TMPVARCV_HANDLER() 35208 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_UNUSED_CONST_HANDLER() local 35256 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_UNUSED_CONST_HANDLER() [all …]
|
H A D | zend_execute.c | 1905 …CALL zend_deprecated_class_constant(const zend_class_constant *c, const zend_string *constant_name) in zend_deprecated_class_constant() argument 1919 ZSTR_VAL(constant_name), in zend_deprecated_class_constant()
|
/PHP-8.4/Zend/tests/ |
H A D | bug44827.phpt | 20 define(): Argument #1 ($constant_name) cannot be a class constant 21 define(): Argument #1 ($constant_name) cannot be a class constant
|
H A D | 008.phpt | 28 TypeError: define(): Argument #1 ($constant_name) must be of type string, array given
|
/PHP-8.4/tests/lang/ |
H A D | bug44827.phpt | 23 define(): Argument #1 ($constant_name) cannot be a class constant
|
/PHP-8.4/Zend/tests/nullsafe_operator/ |
H A D | 013.phpt | 49 Deprecated: defined(): Passing null to parameter #1 ($constant_name) of type string is deprecated i…
|