Searched refs:constant (Results 1 - 20 of 20) 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/opcache/Optimizer/
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];
88 Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall->op2.constant]);
90 fcall->op2.constant = fcall->op2.constant + 1;
95 Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall->op2.constant]);
96 literal_dtor(&op_array->literals[fcall->op2.constant]);
97 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
71 /* binary operation with constant operands */
88 /* evaluate constant expression */
108 /* cast of constant operand */
146 /* unary operation on constant operand */
246 /* substitute __COMPILER_HALT_OFFSET__ constant */
287 /* class constant */
303 Z_STR(op_array->literals[opline->op1.constant + 1]))) == NULL ||
413 opline->op1.constant
[all...]
H A Dzend_optimizer.c136 opline->op1.constant = zend_optimizer_add_literal(op_array, val);
138 Z_CACHE_SLOT(op_array->literals[opline->op1.constant]) = op_array->cache_size;
142 zend_string_hash_val(Z_STR(op_array->literals[opline->op1.constant+1]));
145 opline->op1.constant = zend_optimizer_add_literal(op_array, val);
154 opline->op1.constant = zend_optimizer_add_literal(op_array, val);
166 opline->op2.constant = zend_optimizer_add_literal(op_array, val);
168 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->cache_size;
178 opline->op2.constant = zend_optimizer_add_literal(op_array, val);
196 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->cache_size;
200 zend_string_hash_val(Z_STR(op_array->literals[opline->op2.constant
[all...]
H A Dzend_optimizer_internal.h97 op.constant = zend_optimizer_add_literal(op_array, &_c); \
103 op.constant = zend_optimizer_add_literal(op_array, &_c); \
H A Dblock_pass.c33 /* Checks if a constant (like "true") may be replaced by its value */
153 /* TODO: if conditional jmp depends on constant,
696 constant(x)
734 } else if(flen == sizeof("constant")-1 && zend_binary_strcasecmp(fname, flen, "constant", sizeof("constant")-1) == 0) {
991 /* evaluate constant expressions */
1024 /* evaluate constant unary ops */
1293 last_op->op1.constant = zend_optimizer_add_literal(op_array, &zv);
1319 last_op->op1.constant
[all...]
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/standard/
H A Dbasic_functions.h50 PHP_FUNCTION(constant); variable
H A Dbasic_functions.c2680 PHP_FE(constant, arginfo_constant)
3837 /* {{{ proto mixed constant(string const_name)
3838 Given the name of a constant this function will return the constant's associated value */
3839 PHP_FUNCTION(constant)
3858 php_error_docref(NULL, E_WARNING, "Couldn't find constant %s", ZSTR_VAL(const_name));
/PHP_TRUNK/ext/phar/phar/
H A Dpharcommand.inc414 * @return Hash constant to be used.
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.h339 # define ZEND_OP1_LITERAL(opline) (op_array)->literals[(opline)->op1.constant]
343 # define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant]
/PHP_TRUNK/
H A Drun-tests.php640 if(constant('PHP_BINARY')) {
/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...]
/PHP_TRUNK/Zend/
H A Dzend_compile.c40 target.constant = zend_add_literal(CG(active_op_array), &(src)->u.constant); \
49 ZVAL_COPY_VALUE(&(target)->u.constant, CT_CONSTANT(src)); \
529 /* lowercased namespace name & original constant name */
534 /* lowercased namespace name & lowercased constant name */
545 /* original unqualified constant name */
549 /* lowercased unqualified constant name */
561 op.constant = zend_add_literal(CG(active_op_array), &_c); \
670 zval_ptr_dtor_nogc(&op1->u.constant);
942 op1 = CT_CONSTANT_EX(op_array, opline->op1.constant);
1353 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.h74 uint32_t constant; member in union:_znode_op
93 zval constant; /* replaced by literal/zv */ member in union:_znode::__anon7
561 /* constant-time constant */
566 CT_CONSTANT_EX(CG(active_op_array), (node).constant)
570 /* run-time constant */
574 /* convert constant from compile-time to run-time */
576 (node).zv = CT_CONSTANT_EX(op_array, (node).constant); \
579 /* convert constant back from run-time to compile-time */
581 (node).constant
[all...]
H A Dzend_execute.c620 zval constant; local
622 ZVAL_COPY_VALUE(&constant, default_value);
623 if (UNEXPECTED(zval_update_constant_ex(&constant, 0, NULL) != SUCCESS)) {
626 if (Z_TYPE(constant) == IS_NULL) {
629 zval_dtor(&constant);
H A Dzend_API.c3765 zval constant; local
3767 ZVAL_NULL(&constant);
3768 return zend_declare_class_constant(ce, name, name_length, &constant);
3774 zval constant; local
3776 ZVAL_LONG(&constant, value);
3777 return zend_declare_class_constant(ce, name, name_length, &constant);
3783 zval constant; local
3785 ZVAL_BOOL(&constant, value);
3786 return zend_declare_class_constant(ce, name, name_length, &constant);
3792 zval constant; local
3801 zval constant; local
[all...]
H A Dzend_builtin_functions.c772 /* constant arrays can't contain references */
794 Define a new constant */
820 /* class constant, check if there is name and make sure class is valid & exists */
889 Check whether a constant exists
2124 zend_constant *constant = (zend_constant*)Z_PTR_P(item); local
2127 if (!constant->name) {
2132 ZVAL_DUP(&const_val, &constant->value);
2133 zend_hash_add_new(Z_ARRVAL_P(name_array), constant->name, &const_val);
H A Dzend_language_parser.y242 %type <ast> variable_class_name dereferencable_scalar constant dereferencable
1066 | constant { $$ = $1; }
1069 constant: label
1113 | constant '[' optional_expr ']'

Completed in 96 milliseconds