Searched defs:constant (Results 1 - 9 of 9) sorted by relevance

/PHP_TRUNK/ext/standard/
H A Dbasic_functions.h50 PHP_FUNCTION(constant); variable
/PHP_TRUNK/Zend/
H A Dzend_language_parser.y241 %type <ast> variable_class_name dereferencable_scalar constant dereferencable
1052 | constant { $$ = $1; }
1055 constant: label
1099 | constant '[' optional_expr ']'
H A Dzend_API.c3753 zval constant; local
3755 ZVAL_NULL(&constant);
3756 return zend_declare_class_constant(ce, name, name_length, &constant);
3762 zval constant; local
3764 ZVAL_LONG(&constant, value);
3765 return zend_declare_class_constant(ce, name, name_length, &constant);
3771 zval constant; local
3773 ZVAL_BOOL(&constant, value);
3774 return zend_declare_class_constant(ce, name, name_length, &constant);
3780 zval constant; local
3789 zval constant; local
[all...]
H A Dzend_compile.c39 target.constant = zend_add_literal(CG(active_op_array), &(src)->u.constant); \
48 ZVAL_COPY_VALUE(&(target)->u.constant, CT_CONSTANT(src)); \
518 /* lowercased namespace name & original constant name */
523 /* lowercased namespace name & lowercased constant name */
534 /* original unqualified constant name */
538 /* lowercased unqualified constant name */
550 op.constant = zend_add_literal(CG(active_op_array), &_c); \
654 zval_ptr_dtor_nogc(&op1->u.constant);
886 label = CT_CONSTANT_EX(op_array, opline->op2.constant);
1382 zend_try_compile_const_expr_resolve_class_name(zval *zv, zend_ast *class_ast, zend_ast *name_ast, zend_bool constant) argument
[all...]
H A Dzend_compile.h72 uint32_t constant; member in union:_znode_op
91 zval constant; /* replaced by literal/zv */ member in union:_znode::__anon1
559 /* constant-time constant */
564 CT_CONSTANT_EX(CG(active_op_array), (node).constant)
568 /* run-time constant */
572 /* convert constant from compile-time to run-time */
574 (node).zv = CT_CONSTANT_EX(op_array, (node).constant); \
577 /* convert constant back from run-time to compile-time */
579 (node).constant
[all...]
H A Dzend_execute.c624 zval constant; local
626 ZVAL_COPY_VALUE(&constant, default_value);
627 if (UNEXPECTED(zval_update_constant_ex(&constant, 0, NULL) != SUCCESS)) {
630 if (Z_TYPE(constant) == IS_NULL) {
633 zval_dtor(&constant);
H A Dzend_builtin_functions.c761 /* constant arrays can't contain references */
780 Define a new constant */
806 /* class constant, check if there is name and make sure class is valid & exists */
870 Check whether a constant exists
2105 zend_constant *constant = (zend_constant*)Z_PTR_P(item); local
2108 if (!constant->name) {
2113 ZVAL_DUP(&const_val, &constant->value);
2114 zend_hash_add_new(Z_ARRVAL_P(name_array), constant->name, &const_val);
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dcompact_literals.c83 int constant,
93 if (Z_TYPE(op_array->literals[constant]) == IS_STRING &&
95 LITERAL_INFO_OBJ(constant, kind, 1, slots, related, op_array->this_var);
97 LITERAL_INFO(constant, kind, 0, slots, related);
104 int constant,
111 LITERAL_INFO_CLASS(constant, kind, 1, slots, related, op.constant);
113 LITERAL_INFO(constant, kind, 0, slots, related);
140 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 1);
143 LITERAL_INFO(opline->op2.constant, LITERAL_FUN
80 optimizer_literal_obj_info(literal_info *info, zend_uchar op_type, znode_op op, int constant, uint32_t kind, uint32_t slots, uint32_t related, zend_op_array *op_array) argument
101 optimizer_literal_class_info(literal_info *info, zend_uchar op_type, znode_op op, int constant, uint32_t kind, uint32_t slots, uint32_t related, zend_op_array *op_array) argument
[all...]
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c1015 zend_constant *constant = (zend_constant*)Z_PTR_P(el); local
1021 if (constant->module_number == module->module_number) {
1022 _const_string(str, ZSTR_VAL(constant->name), &constant->value, indent);
2888 Returns whether the default value of this parameter is constant */
2913 Returns the default value's constant name if default value is constant or null */
4394 Returns whether a constant exists or not */
4438 Returns the class' constant specified by its name */
5697 zend_constant *constant local
[all...]

Completed in 41 milliseconds