Home
last modified time | relevance | path

Searched refs:constant_name (Results 1 – 13 of 13) 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 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 Dzend_builtin_functions.stub.php41 function define(string $constant_name, mixed $value, bool $case_insensitive = false): bool {} argument
43 function defined(string $constant_name): bool {} argument
H A Dzend_builtin_functions_arginfo.h47 ZEND_ARG_TYPE_INFO(0, constant_name, IS_STRING, 0)
53 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.c2652 …ry *ce, zend_class_entry **traits, size_t current_trait, zend_string *constant_name, const zend_cl… in find_first_constant_definition() argument
2666 && zend_hash_exists(&traits[i]->constants_table, constant_name)) { in find_first_constant_definition()
2734 zend_string *constant_name; in zend_do_traits_constant_binding() local
2741 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&traits[i]->constants_table, constant_name, constant) { in zend_do_traits_constant_binding()
2742 if (do_trait_constant_check(ce, constant, constant_name, traits, i)) { in zend_do_traits_constant_binding()
2766 zend_hash_update_ptr(&ce->constants_table, constant_name, constant); in zend_do_traits_constant_binding()
H A Dzend_execute.h65 …ALL zend_deprecated_class_constant(const zend_class_constant *c, const zend_string *constant_name);
H A Dzend_vm_def.h6010 zend_string *constant_name; variable
6058 constant_name = Z_STR_P(constant_zv);
6060 if (OP2_TYPE != IS_CONST && UNEXPECTED(zend_string_equals_literal_ci(constant_name, "class"))) {
6066 ? zend_hash_find_known_hash(CE_CONSTANTS_TABLE(ce), constant_name)
6067 : zend_hash_find(CE_CONSTANTS_TABLE(ce), constant_name);
6073 …", zend_visibility_string(ZEND_CLASS_CONST_FLAGS(c)), ZSTR_VAL(ce->name), ZSTR_VAL(constant_name));
6080 …NULL, "Cannot access trait constant %s::%s directly", ZSTR_VAL(ce->name), ZSTR_VAL(constant_name));
6088 zend_deprecated_class_constant(c, constant_name);
6107 if (UNEXPECTED(zend_update_class_constant(c, constant_name, c->ce) != SUCCESS)) {
6118 ZSTR_VAL(ce->name), ZSTR_VAL(constant_name));
H A Dzend_vm_execute.h7514 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER() local
7562 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST_HANDLER()
8674 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_TMPVARCV_HANDLER() local
8722 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_TMPVARCV_HANDLER()
25719 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_CONST_HANDLER() local
25767 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_CONST_HANDLER()
26288 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_TMPVARCV_HANDLER() local
26336 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_VAR_TMPVARCV_HANDLER()
35127 zend_string *constant_name; in ZEND_FETCH_CLASS_CONSTANT_SPEC_UNUSED_CONST_HANDLER() local
35175 constant_name = Z_STR_P(constant_zv); in ZEND_FETCH_CLASS_CONSTANT_SPEC_UNUSED_CONST_HANDLER()
[all …]
H A Dzend_execute.c1905 …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/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 207 milliseconds