Home
last modified time | relevance | path

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

/php-src/Zend/
H A Dzend_constants.c332 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 …rror(E_DEPRECATED, "Constant %s::%s is deprecated", ZSTR_VAL(class_name), ZSTR_VAL(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()
493 const char *constant_name = colon + 1; in zend_get_constant_ex() local
504 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.c2343 …ry *ce, zend_class_entry **traits, size_t current_trait, zend_string *constant_name, zend_class_en… in find_first_constant_definition() argument
2357 && zend_hash_exists(&traits[i]->constants_table, constant_name)) { in find_first_constant_definition()
2425 zend_string *constant_name; in zend_do_traits_constant_binding() local
2432 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&traits[i]->constants_table, constant_name, constant) { in zend_do_traits_constant_binding()
2433 if (do_trait_constant_check(ce, constant, constant_name, traits, i)) { in zend_do_traits_constant_binding()
2457 zend_hash_update_ptr(&ce->constants_table, constant_name, constant); in zend_do_traits_constant_binding()
H A Dzend_vm_execute.h7316 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER() local
7364 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER()
8481 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_TMPVARCV_HANDLER() local
8529 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_TMPVARCV_HANDLER()
25199 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_CONST_HANDLER() local
25247 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_CONST_HANDLER()
25772 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_TMPVARCV_HANDLER() local
25820 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_TMPVARCV_HANDLER()
34367 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_UNUSED_CONST_HANDLER() local
34415 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_UNUSED_CONST_HANDLER()
[all …]
H A Dzend_vm_def.h5935 zend_string *constant_name; variable
5983 constant_name = Z_STR_P(constant_zv);
5985 if (OP2_TYPE != IS_CONST && UNEXPECTED(zend_string_equals_literal_ci(constant_name, "class"))) {
5991 ? zend_hash_find_known_hash(CE_CONSTANTS_TABLE(ce), constant_name)
5992 : zend_hash_find(CE_CONSTANTS_TABLE(ce), constant_name);
5998 …", zend_visibility_string(ZEND_CLASS_CONST_FLAGS(c)), ZSTR_VAL(ce->name), ZSTR_VAL(constant_name));
6005 …NULL, "Cannot access trait constant %s::%s directly", ZSTR_VAL(ce->name), ZSTR_VAL(constant_name));
6013 …_error(E_DEPRECATED, "Constant %s::%s is deprecated", ZSTR_VAL(ce->name), ZSTR_VAL(constant_name));
6032 if (UNEXPECTED(zend_update_class_constant(c, constant_name, c->ce) != SUCCESS)) {
6043 ZSTR_VAL(ce->name), ZSTR_VAL(constant_name));
/php-src/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-src/tests/lang/
H A Dbug44827.phpt23 define(): Argument #1 ($constant_name) cannot be a class constant
/php-src/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 182 milliseconds