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/ext/reflection/
H A Dphp_reflection.c998 zend_constant *constant = (zend_constant*)Z_PTR_P(el); local
1004 if (constant->module_number == module->module_number) {
1005 _const_string(str, constant->name->val, &constant->value, indent);
2807 Returns whether the default value of this parameter is constant */
2832 Returns the default value's constant name if default value is constant or null */
4211 Returns whether a constant exists or not */
4255 Returns the class' constant specified by its name */
5513 zend_constant *constant local
[all...]
/PHP_TRUNK/Zend/
H A Dzend_API.c3767 zval constant; local
3769 ZVAL_NULL(&constant);
3770 return zend_declare_class_constant(ce, name, name_length, &constant);
3776 zval constant; local
3778 ZVAL_LONG(&constant, value);
3779 return zend_declare_class_constant(ce, name, name_length, &constant);
3785 zval constant; local
3787 ZVAL_BOOL(&constant, value);
3788 return zend_declare_class_constant(ce, name, name_length, &constant);
3794 zval constant; local
3803 zval constant; local
[all...]
H A Dzend_builtin_functions.c759 /* constant arrays can't contain references */
778 Define a new constant */
804 /* class constant, check if there is name and make sure class is valid & exists */
868 Check whether a constant exists
2097 zend_constant *constant = (zend_constant*)Z_PTR_P(item); local
2100 if (!constant->name) {
2105 ZVAL_DUP(&const_val, &constant->value);
2106 zend_hash_add_new(Z_ARRVAL_P(name_array), constant->name, &const_val);
H A Dzend_execute.c621 zval constant; local
623 ZVAL_COPY_VALUE(&constant, default_value);
624 if (UNEXPECTED(zval_update_constant_ex(&constant, 0, NULL) != SUCCESS)) {
627 if (Z_TYPE(constant) == IS_NULL) {
630 zval_dtor(&constant);
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_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);
883 label = CT_CONSTANT_EX(op_array, opline->op2.constant);
1379 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
554 /* constant-time constant */
559 CT_CONSTANT_EX(CG(active_op_array), (node).constant)
563 /* run-time constant */
567 /* convert constant from compile-time to run-time */
569 (node).zv = CT_CONSTANT_EX(op_array, (node).constant); \
572 /* convert constant back from run-time to compile-time */
574 (node).constant
[all...]
/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);
139 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 1);
142 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...]

Completed in 40 milliseconds