/php-src/ext/hash/tests/ |
H A D | mhash_001.phpt | 25 $result = mhash(constant($hash), $data);
|
H A D | mhash_003.phpt | 25 $result = mhash_keygen_s2k(constant($hash), $passwd, $salt, 100);
|
/php-src/Zend/tests/ |
H A D | bug42819.phpt | 2 Bug #42819 (namespaces in indexes of constant arrays) 300 Fatal error: Uncaught Error: Undefined constant "foo\foo\unknown" in %s:%d
|
/php-src/ext/reflection/ |
H A D | php_reflection.stub.php | 592 public function __construct(object|string $class, string $constant) {} argument 870 public function __construct(object|string $class, string $constant) {} argument 880 public function __construct(object|string $class, string $constant) {} argument
|
/php-src/docs/source/core/data-structures/ |
H A D | zval.rst | 110 uint32_t constant_flags; /* constant flags */ 117 ``zval.u1`` stores the variable type, the given ``IS_*`` constant, along with some other flags. It's 174 ``IS_CONSTANT_AST`` is used to represent constant values (the right hand side of ``const``, 175 property/parameter initializers, etc.) before they are evaluated. The evaluation of a constant
|
/php-src/ext/gd/tests/ |
H A D | imagefilter.phpt | 29 if (imagefilter($im, constant($filt))) {
|
/php-src/docs/source/miscellaneous/ |
H A D | stubs.rst | 105 Besides constant literals, default values can also contain compile-time evaluable expressions, and 108 In the example below, we define a function with an optional argument, referencing a constant: 131 If this is not possible, then the stub declaring the constant should be included with ``require``: 389 If a global constant or function attribute are present in the stub file, the generated C-code will 445 If a constant's value is defined by a 3rd party library, PHP's internals, or a specific type such as 447 value in the stub file, but instead use the ``UNKNOWN`` constant value with the ``@cvalue`` PHPDoc 450 In the example below we define the ``BAR`` global constant to ``UNKNOWN``, with the value linked 451 with ``@cvalue M_PI`` to the C-level constant ``M_PI`` (define by PHP's internals). 455 - ``@deprecated``: Triggers a deprecation notice when the constant is used.
|
/php-src/ext/curl/tests/ |
H A D | bug48203_multi.phpt | 61 checkForClosedFilePointer($target_url, constant($option), $option);
|
/php-src/Zend/tests/constants/ |
H A D | dir-constant-nested_includes.phpt | 2 __DIR__ constant test with nested includes
|
/php-src/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_prepare_native_named_placeholder.phpt | 28 // The ':placeholder' is a string constant in the INSERT statement.
|
/php-src/Zend/Optimizer/ |
H A D | pass3.c | 98 opline->op1.constant = zend_optimizer_add_literal(op_array, &zv); in zend_optimizer_pass3()
|
H A D | sccp.c | 191 return CT_CONSTANT_EX(ctx->scdf.op_array, opline->op1.constant); in get_op1_value() 201 return CT_CONSTANT_EX(ctx->scdf.op_array, opline->op2.constant); in get_op2_value() 1659 name = CT_CONSTANT_EX(ctx->scdf.op_array, call->caller_init_opline->op2.constant); in sccp_visit_instr() 1919 HashTable *jmptable = Z_ARRVAL_P(CT_CONSTANT_EX(op_array, opline->op2.constant)); in sccp_mark_feasible_successors() 2348 opline->op2.constant = zend_optimizer_add_literal(op_array, value); in try_remove_definition()
|
/php-src/ext/snmp/tests/ |
H A D | snmp-object-properties.phpt | 198 SNMP output print format must be an SNMP_OID_OUTPUT_* constant
|
/php-src/Zend/ |
H A D | zend_inheritance.c | 2735 zend_class_constant *constant; in zend_do_traits_constant_binding() local 2742 if (do_trait_constant_check(ce, constant, constant_name, traits, i)) { in zend_do_traits_constant_binding() 2746 memcpy(ct, constant, sizeof(zend_class_constant)); in zend_do_traits_constant_binding() 2747 constant = ct; in zend_do_traits_constant_binding() 2749 if (Z_TYPE(constant->value) == IS_CONSTANT_AST) { in zend_do_traits_constant_binding() 2758 constant->ce = ce; in zend_do_traits_constant_binding() 2760 Z_TRY_ADDREF(constant->value); in zend_do_traits_constant_binding() 2761 constant->doc_comment = constant->doc_comment ? zend_string_copy(constant->doc_comment) : NULL; in zend_do_traits_constant_binding() 2762 if (constant->attributes && (!(GC_FLAGS(constant->attributes) & IS_ARRAY_IMMUTABLE))) { in zend_do_traits_constant_binding() 2763 GC_ADDREF(constant->attributes); in zend_do_traits_constant_binding() [all …]
|
H A D | zend_API.c | 4923 zval constant; in zend_declare_class_constant_null() local 4925 ZVAL_NULL(&constant); in zend_declare_class_constant_null() 4926 zend_declare_class_constant(ce, name, name_length, &constant); in zend_declare_class_constant_null() 4932 zval constant; in zend_declare_class_constant_long() local 4934 ZVAL_LONG(&constant, value); in zend_declare_class_constant_long() 4935 zend_declare_class_constant(ce, name, name_length, &constant); in zend_declare_class_constant_long() 4941 zval constant; in zend_declare_class_constant_bool() local 4943 ZVAL_BOOL(&constant, value); in zend_declare_class_constant_bool() 4950 zval constant; in zend_declare_class_constant_double() local 4952 ZVAL_DOUBLE(&constant, value); in zend_declare_class_constant_double() [all …]
|
H A D | zend_builtin_functions.c | 1653 zend_constant *constant; in ZEND_FUNCTION() local 1656 ZEND_HASH_MAP_FOREACH_PTR(EG(zend_constants), constant) { in ZEND_FUNCTION() 1657 if (!constant->name) { in ZEND_FUNCTION() 1661 ZVAL_COPY_OR_DUP(&const_val, &constant->value); in ZEND_FUNCTION() 1662 zend_hash_add_new(Z_ARRVAL_P(return_value), constant->name, &const_val); in ZEND_FUNCTION()
|
H A D | zend_execute.h | 509 …l zend_verify_class_constant_type(zend_class_constant *c, const zend_string *name, zval *constant); 510 …s_constant_type_error(const zend_class_constant *c, const zend_string *name, const zval *constant);
|
H A D | zend_language_parser.y | 265 %type <ast> variable_class_name dereferenceable_scalar constant class_constant 1449 | constant { $$ = $1; } 1453 constant: 1499 | constant { $$ = $1; }
|
H A D | zend_execute.c | 830 …ss_constant_type_error(const zend_class_constant *c, const zend_string *name, const zval *constant) in zend_verify_class_constant_type_error() argument 835 zend_zval_type_name(constant), ZSTR_VAL(c->ce->name), ZSTR_VAL(name), ZSTR_VAL(type_str)); in zend_verify_class_constant_type_error() 1521 …atic zend_always_inline bool zend_check_class_constant_type(zend_class_constant *c, zval *constant) in zend_check_class_constant_type() argument 1523 ZEND_ASSERT(!Z_ISREF_P(constant)); in zend_check_class_constant_type() 1524 if (EXPECTED(ZEND_TYPE_CONTAINS_CODE(c->type, Z_TYPE_P(constant)))) { in zend_check_class_constant_type() 1528 …MASK(c->type) & MAY_BE_STATIC) || ZEND_TYPE_IS_COMPLEX(c->type)) && Z_TYPE_P(constant) == IS_OBJECT in zend_check_class_constant_type() 1529 …end_check_and_resolve_property_or_class_constant_class_type(c->ce, c->type, Z_OBJCE_P(constant))) { in zend_check_class_constant_type() 1535 return zend_verify_scalar_type_hint(type_mask, constant, true, false); in zend_check_class_constant_type() 1538 …ne zend_verify_class_constant_type(zend_class_constant *c, const zend_string *name, zval *constant) in zend_verify_class_constant_type() argument 1540 if (!zend_check_class_constant_type(c, constant)) { in zend_verify_class_constant_type() [all …]
|
/php-src/ext/intl/tests/ |
H A D | normalizer_normalize_kc_cf.phpt | 6 <?php if (!defined('Normalizer::FORM_KC_CF')) print 'skip Normalizer::FORM_KC_CF constant not defin…
|
/php-src/ext/standard/tests/general_functions/ |
H A D | parse_ini_basic.data | 164 constant = ${undefined:-TEST_CONSTANT}
|
H A D | parse_ini_basic.phpt | 339 ["constant"]=>
|
/php-src/ext/tokenizer/tests/ |
H A D | token_get_all_variation10.phpt | 2 Test token_get_all() function : usage variations - with constant tokens
|
/php-src/ext/opcache/ |
H A D | zend_persist.c | 546 opline->op1.constant = in zend_persist_op_array_ex() 549 (int32_t)opline->op1.constant) - orig_literals)) - in zend_persist_op_array_ex() 558 opline->op2.constant = in zend_persist_op_array_ex() 561 (int32_t)opline->op2.constant) - orig_literals)) - in zend_persist_op_array_ex()
|
/php-src/ |
H A D | CODING_STANDARDS.md | 42 constant to specify different behavior or actions should be done through 279 1. The length of constant string literals should be calculated via ``strlen()``
|