Searched refs:constant_name (Results 1 – 11 of 11) sorted by relevance
/PHP-8.3/Zend/ |
H A D | zend_constants.c | 339 c = zend_hash_find_ptr(CE_CONSTANTS_TABLE(ce), constant_name); in zend_get_class_constant_ex() 342 …zend_throw_error(NULL, "Undefined constant %s::%s", ZSTR_VAL(class_name), ZSTR_VAL(constant_name)); in zend_get_class_constant_ex() 357 …LL, "Cannot access trait constant %s::%s directly", ZSTR_VAL(class_name), ZSTR_VAL(constant_name)); in zend_get_class_constant_ex() 364 …rror(E_DEPRECATED, "Constant %s::%s is deprecated", ZSTR_VAL(class_name), ZSTR_VAL(constant_name)); in zend_get_class_constant_ex() 384 ret = zend_update_class_constant(c, constant_name, c->ce); in zend_get_class_constant_ex() 414 zend_string *constant_name = zend_string_init(colon + 1, const_name_len, 0); in zend_get_constant_ex() local 416 zval *ret_constant = zend_get_class_constant_ex(class_name, constant_name, scope, flags); in zend_get_constant_ex() 419 zend_string_efree(constant_name); in zend_get_constant_ex() 500 const char *constant_name = colon + 1; in zend_get_constant_ex() local 511 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 | 36 function define(string $constant_name, mixed $value, bool $case_insensitive = false): bool {} argument 38 function defined(string $constant_name): bool {} argument
|
H A D | zend_builtin_functions_arginfo.h | 41 ZEND_ARG_TYPE_INFO(0, constant_name, IS_STRING, 0) 47 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 | 2342 …ry *ce, zend_class_entry **traits, size_t current_trait, zend_string *constant_name, zend_class_en… in find_first_constant_definition() argument 2356 && zend_hash_exists(&traits[i]->constants_table, constant_name)) { in find_first_constant_definition() 2424 zend_string *constant_name; in zend_do_traits_constant_binding() local 2431 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&traits[i]->constants_table, constant_name, constant) { in zend_do_traits_constant_binding() 2432 if (do_trait_constant_check(ce, constant, constant_name, traits, i)) { in zend_do_traits_constant_binding() 2456 zend_hash_update_ptr(&ce->constants_table, constant_name, constant); in zend_do_traits_constant_binding()
|
H A D | zend_vm_def.h | 5917 zend_string *constant_name; variable 5965 constant_name = Z_STR_P(constant_zv); 5967 if (OP2_TYPE != IS_CONST && UNEXPECTED(zend_string_equals_literal_ci(constant_name, "class"))) { 5973 ? zend_hash_find_known_hash(CE_CONSTANTS_TABLE(ce), constant_name) 5974 : zend_hash_find(CE_CONSTANTS_TABLE(ce), constant_name); 5980 …", zend_visibility_string(ZEND_CLASS_CONST_FLAGS(c)), ZSTR_VAL(ce->name), ZSTR_VAL(constant_name)); 5987 …NULL, "Cannot access trait constant %s::%s directly", ZSTR_VAL(ce->name), ZSTR_VAL(constant_name)); 5995 …_error(E_DEPRECATED, "Constant %s::%s is deprecated", ZSTR_VAL(ce->name), ZSTR_VAL(constant_name)); 6014 if (UNEXPECTED(zend_update_class_constant(c, constant_name, c->ce) != SUCCESS)) { 6025 ZSTR_VAL(ce->name), ZSTR_VAL(constant_name));
|
H A D | zend_vm_execute.h | 7195 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER() local 7243 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER() 8360 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_TMPVARCV_HANDLER() local 8408 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_TMPVARCV_HANDLER() 25078 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_CONST_HANDLER() local 25126 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_CONST_HANDLER() 25651 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_TMPVARCV_HANDLER() local 25699 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_TMPVARCV_HANDLER() 34246 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_UNUSED_CONST_HANDLER() local 34294 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_UNUSED_CONST_HANDLER() [all …]
|
/PHP-8.3/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.3/tests/lang/ |
H A D | bug44827.phpt | 23 define(): Argument #1 ($constant_name) cannot be a class constant
|
/PHP-8.3/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…
|
Completed in 206 milliseconds