/php-src/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-src/Zend/ |
H A D | zend_constants.c | 341 c = zend_hash_find_ptr(CE_CONSTANTS_TABLE(ce), constant_name); in zend_get_class_constant_ex() 344 …zend_throw_error(NULL, "Undefined constant %s::%s", ZSTR_VAL(class_name), ZSTR_VAL(constant_name)); in zend_get_class_constant_ex() 359 …LL, "Cannot access trait constant %s::%s directly", ZSTR_VAL(class_name), ZSTR_VAL(constant_name)); in zend_get_class_constant_ex() 366 zend_deprecated_class_constant(c, constant_name); in zend_get_class_constant_ex() 386 ret = zend_update_class_constant(c, constant_name, c->ce); 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() 430 const char *constant_name = colon + 1; in zend_get_constant_ex() local 441 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 | 81 ZEND_API zval *zend_get_class_constant_ex(zend_string *class_name, zend_string *constant_name, zend…
|
H A D | zend_inheritance.c | 2657 …ry *ce, zend_class_entry **traits, size_t current_trait, zend_string *constant_name, const zend_cl… in find_first_constant_definition() argument 2671 && zend_hash_exists(&traits[i]->constants_table, constant_name)) { in find_first_constant_definition() 2739 zend_string *constant_name; in zend_do_traits_constant_binding() local 2746 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&traits[i]->constants_table, constant_name, constant) { in zend_do_traits_constant_binding() 2747 if (do_trait_constant_check(ce, constant, constant_name, traits, i)) { in zend_do_traits_constant_binding() 2771 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 | 6019 zend_string *constant_name; variable 6067 constant_name = Z_STR_P(constant_zv); 6069 if (OP2_TYPE != IS_CONST && UNEXPECTED(zend_string_equals_literal_ci(constant_name, "class"))) { 6075 ? zend_hash_find_known_hash(CE_CONSTANTS_TABLE(ce), constant_name) 6076 : zend_hash_find(CE_CONSTANTS_TABLE(ce), constant_name); 6082 …", zend_visibility_string(ZEND_CLASS_CONST_FLAGS(c)), ZSTR_VAL(ce->name), ZSTR_VAL(constant_name)); 6089 …NULL, "Cannot access trait constant %s::%s directly", ZSTR_VAL(ce->name), ZSTR_VAL(constant_name)); 6097 zend_deprecated_class_constant(c, constant_name); 6116 if (UNEXPECTED(zend_update_class_constant(c, constant_name, c->ce) != SUCCESS)) { 6127 ZSTR_VAL(ce->name), ZSTR_VAL(constant_name));
|
H A D | zend_vm_execute.h | 7542 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER() local 7590 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER() 8702 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_TMPVARCV_HANDLER() local 8750 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_TMPVARCV_HANDLER() 25781 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_CONST_HANDLER() local 25829 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_CONST_HANDLER() 26350 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_TMPVARCV_HANDLER() local 26398 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_TMPVARCV_HANDLER() 35189 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_UNUSED_CONST_HANDLER() local 35237 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-src/tests/lang/ |
H A D | bug44827.phpt | 23 define(): Argument #1 ($constant_name) cannot be a class constant
|
/php-src/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…
|