Home
last modified time | relevance | path

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

/PHP-8.1/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-8.1/Zend/
H A Dzend_constants.c327 ZEND_API zval *zend_get_class_constant_ex(zend_string *class_name, zend_string *constant_name, zend… in zend_get_class_constant_ex() argument
364 c = zend_hash_find_ptr(CE_CONSTANTS_TABLE(ce), constant_name); in zend_get_class_constant_ex()
367 …zend_throw_error(NULL, "Undefined constant %s::%s", ZSTR_VAL(class_name), ZSTR_VAL(constant_name)); in zend_get_class_constant_ex()
374 … zend_visibility_string(ZEND_CLASS_CONST_FLAGS(c)), ZSTR_VAL(class_name), ZSTR_VAL(constant_name)); in zend_get_class_constant_ex()
386 … "Cannot declare self-referencing constant %s::%s", ZSTR_VAL(class_name), ZSTR_VAL(constant_name)); in zend_get_class_constant_ex()
422 zend_string *constant_name = zend_string_init(colon + 1, const_name_len, 0); in zend_get_constant_ex() local
424 zval *ret_constant = zend_get_class_constant_ex(class_name, constant_name, scope, flags); in zend_get_constant_ex()
427 zend_string_efree(constant_name); in zend_get_constant_ex()
508 const char *constant_name = colon + 1; in zend_get_constant_ex() local
519 memcpy(lcname + prefix_len + 1, constant_name, const_name_len + 1); in zend_get_constant_ex()
[all …]
H A Dzend_builtin_functions.stub.php31 function define(string $constant_name, mixed $value, bool $case_insensitive = false): bool {} argument
33 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…
/PHP-8.1/tests/lang/
H A Dbug44827.phpt23 define(): Argument #1 ($constant_name) cannot be a class constant
/PHP-8.1/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 11 milliseconds