Searched refs:constant (Results 1 - 21 of 21) sorted by relevance

/PHP_TRUNK/ext/bcmath/libbcmath/
H A Dconfigure1266 of an if-expression whose if-part is not a constant expression */
/PHP_TRUNK/ext/mysqli/tests/
H A Dreflection_tools.inc55 foreach ($constant as $name => $value)
/PHP_TRUNK/ext/phar/phar/
H A Dpharcommand.inc414 * @return Hash constant to be used.
/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);
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...]
H A Doptimize_func_calls.c34 Z_TYPE(op_array->literals[(opline)->op2.constant]) == IS_STRING)
61 zval *function_name = &op_array->literals[opline->op2.constant + 1];
84 Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall->op2.constant]);
86 fcall->op2.constant = fcall->op2.constant + 1;
90 Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall->op2.constant]);
91 literal_dtor(&op_array->literals[fcall->op2.constant]);
92 literal_dtor(&op_array->literals[fcall->op2.constant
[all...]
H A Dpass1_5.c24 * - perform compile-time evaluation of constant binary and unary operations
27 * - pre-evaluate constant function calls
70 /* binary operation with constant operands */
84 /* evaluate constant expression */
103 /* cast of constant operand */
141 /* unary operation on constant operand */
238 /* substitute __COMPILER_HALT_OFFSET__ constant */
277 /* class constant */
293 Z_STR(op_array->literals[opline->op1.constant + 1]))) == NULL ||
402 opline->op1.constant
[all...]
H A Dzend_optimizer.c109 //??? Z_SET_REFCOUNT(op_array->literals[i].constant, 2);
110 //??? Z_SET_ISREF(op_array->literals[i].constant);
130 opline->op1.constant = zend_optimizer_add_literal(op_array, val);
132 Z_CACHE_SLOT(op_array->literals[opline->op1.constant]) = op_array->last_cache_slot++;
135 zend_string_hash_val(Z_STR(op_array->literals[opline->op1.constant+1]));
138 opline->op1.constant = zend_optimizer_add_literal(op_array, val);
143 opline->op1.constant = zend_optimizer_add_literal(op_array, val);
155 opline->op2.constant = zend_optimizer_add_literal(op_array, val);
157 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->last_cache_slot++;
160 opline->op2.constant
[all...]
H A Dblock_pass.c32 /* Checks if a constant (like "true") may be replaced by its value */
157 /* TODO: if conditional jmp depends on constant,
675 constant(x)
713 } else if(flen == sizeof("constant")-1 && zend_binary_strcasecmp(fname, flen, "constant", sizeof("constant")-1) == 0) {
979 /* evaluate constant expressions */
1008 /* evaluate constant unary ops */
1269 last_op->op1.constant = zend_optimizer_add_literal(op_array, &zv);
1295 last_op->op1.constant
[all...]
H A Dzend_optimizer_internal.h94 op.constant = zend_optimizer_add_literal(op_array, &_c); \
100 op.constant = zend_optimizer_add_literal(op_array, &_c); \
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.h327 # define ZEND_OP1_LITERAL(opline) (op_array)->literals[(opline)->op1.constant]
331 # define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant]
/PHP_TRUNK/ext/standard/
H A Dbasic_functions.c2658 PHP_FE(constant, arginfo_constant)
3804 /* {{{ proto mixed constant(string const_name)
3805 Given the name of a constant this function will return the constant's associated value */
3806 PHP_FUNCTION(constant)
3823 php_error_docref(NULL, E_WARNING, "Couldn't find constant %s", const_name->val);
H A Dbasic_functions.h50 PHP_FUNCTION(constant); variable
/PHP_TRUNK/Zend/
H A Dzend_builtin_functions.c748 /* constant arrays can't contain references */
767 Define a new constant */
793 /* class constant, check if there is name and make sure class is valid & exists */
857 Check whether a constant exists
2054 zend_constant *constant = (zend_constant*)Z_PTR_P(item); local
2057 if (!constant->name) {
2062 ZVAL_DUP(&const_val, &constant->value);
2063 zend_hash_add_new(Z_ARRVAL_P(name_array), constant->name, &const_val);
H A Dzend_API.c3540 zval constant; local
3542 ZVAL_NULL(&constant);
3543 return zend_declare_class_constant(ce, name, name_length, &constant);
3549 zval constant; local
3551 ZVAL_LONG(&constant, value);
3552 return zend_declare_class_constant(ce, name, name_length, &constant);
3558 zval constant; local
3560 ZVAL_BOOL(&constant, value);
3561 return zend_declare_class_constant(ce, name, name_length, &constant);
3567 zval constant; local
3576 zval constant; local
[all...]
H A Dzend_compile.c38 target.constant = zend_add_literal(CG(active_op_array), &(src)->u.constant); \
47 ZVAL_COPY_VALUE(&(target)->u.constant, CT_CONSTANT(src)); \
404 /* lowercased namespace name & original constant name */
409 /* lowercased namespace name & lowercased constant name */
420 /* original unqualified constant name */
424 /* lowercased unqualified constant name */
436 op.constant = zend_add_literal(CG(active_op_array), &_c); \
530 zval_ptr_dtor_nogc(&op1->u.constant);
758 label = CT_CONSTANT_EX(op_array, opline->op2.constant);
[all...]
H A Dzend_compile.h83 uint32_t constant; member in union:_znode_op
101 zval constant; /* replaced by literal/zv */ member in union:_znode::__anon1
514 /* constant-time constant */
519 CT_CONSTANT_EX(CG(active_op_array), (node).constant)
523 /* run-time constant */
527 /* convert constant from compile-time to run-time */
529 (node).zv = CT_CONSTANT_EX(op_array, (node).constant); \
532 /* convert constant back from run-time to compile-time */
534 (node).constant
[all...]
H A Dzend_execute.c600 zval constant; local
602 ZVAL_COPY_VALUE(&constant, default_value);
603 zval_update_constant(&constant, 0);
604 if (Z_TYPE(constant) == IS_NULL) {
607 zval_dtor(&constant);
H A Dzend_language_parser.y241 %type <ast> variable_class_name dereferencable_scalar class_name_scalar constant dereferencable
983 | constant { $$ = $1; }
986 constant: label
1030 | constant '[' optional_expr ']'
H A Dzend_opcode.c663 nest_levels = Z_LVAL(op_array->literals[opline->op2.constant]);
676 if (Z_TYPE_P(CT_CONSTANT_EX(op_array, opline->op2.constant)) != IS_LONG) {
677 uint32_t num = opline->op2.constant;
681 opline->op2.constant = num;
/PHP_TRUNK/
H A Drun-tests.php608 if(constant('PHP_BINARY')) {
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c1032 zend_constant *constant = (zend_constant*)Z_PTR_P(el); local
1038 if (constant->module_number == module->module_number) {
1039 _const_string(str, constant->name->val, &constant->value, indent);
2665 Returns whether the default value of this parameter is constant */
2690 Returns the default value's constant name if default value is constant or null */
4043 Returns whether a constant exists or not */
4082 Returns the class' constant specified by its name */
5328 zend_constant *constant local
[all...]

Completed in 73 milliseconds