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

12

/PHP_5_5/ext/bcmath/libbcmath/
H A Dconfigure1266 of an if-expression whose if-part is not a constant expression */
/PHP_5_5/ext/mysqli/tests/
H A Dreflection_tools.inc55 foreach ($constant as $name => $value)
/PHP_5_5/ext/phar/phar/
H A Dpharcommand.inc414 * @return Hash constant to be used.
/PHP_5_5/ext/intl/breakiterator/
H A Dbreakiterator_iterators.cpp261 Z_STRVAL(local_literal.constant) = static_cast<char*>(
263 zend_str_tolower_copy(Z_STRVAL(local_literal.constant),
266 Z_STRVAL(local_literal.constant), method_len + 1);
272 && memcmp("getrulestatus", Z_STRVAL(key->constant), method_len) == 0) {
289 free_alloca(Z_STRVAL(local_literal.constant), use_heap);
/PHP_5_5/ext/opcache/Optimizer/
H A Dpass1_5.c3 * - perform compile-time evaluation of constant binary and unary operations
36 /* binary operation with constant operands */
50 /* evaluate constant expression */
72 /* cast of constant operand */
109 /* unary operation on constant operand */
214 /* substitute __COMPILER_HALT_OFFSET__ constant */
260 op_array->literals[(opline + 1)->op1.constant].cache_slot = op_array->last_cache_slot++;
H A Dzend_optimizer.c70 op_array->literals[i].constant = *zv;
73 Z_SET_REFCOUNT(op_array->literals[i].constant, 2);
74 Z_SET_ISREF(op_array->literals[i].constant);
81 op.constant = zend_optimizer_add_literal(op_array, &_c TSRMLS_CC); \
87 op.constant = zend_optimizer_add_literal(op_array, &_c TSRMLS_CC); \
102 # define LITERAL_LONG(op, val) ZVAL_LONG(&op.u.constant, val)
104 # define LITERAL_BOOL(op, val) ZVAL_BOOL(&op.u.constant, val)
129 opline->op1.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC);
131 op_array->literals[opline->op1.constant].cache_slot = op_array->last_cache_slot++;
134 op_array->literals[opline->op1.constant
[all...]
/PHP_5_5/ext/opcache/
H A Dzend_persist.c235 zend_persist_zval(&p->constant TSRMLS_CC);
236 zend_protect_zval(&p->constant TSRMLS_CC);
257 zend_persist_zval(&opline->op1.u.constant TSRMLS_CC);
258 zend_protect_zval(&opline->op1.u.constant TSRMLS_CC);
265 zend_persist_zval(&opline->op2.u.constant TSRMLS_CC);
266 zend_protect_zval(&opline->op2.u.constant TSRMLS_CC);
H A Dzend_persist_calc.c148 ADD_SIZE(zend_persist_zval_calc(&p->constant TSRMLS_CC));
162 ADD_SIZE(zend_persist_zval_calc(&opline->op1.u.constant TSRMLS_CC));
165 ADD_SIZE(zend_persist_zval_calc(&opline->op2.u.constant TSRMLS_CC));
H A DZendAccelerator.h369 # define ZEND_OP1_LITERAL(opline) (op_array)->literals[(opline)->op1.constant].constant
373 # define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant].constant
387 # define ZEND_OP1_CONST(opline) (opline)->op1.u.constant
388 # define ZEND_OP1_LITERAL(opline) (opline)->op1.u.constant
391 # define ZEND_OP2_CONST(opline) (opline)->op2.u.constant
392 # define ZEND_OP2_LITERAL(opline) (opline)->op2.u.constant
H A DZendAccelerator.c447 /* constant hash keys */
1510 ((*EG(opline_ptr))->op2.u.constant.value.lval == ZEND_INCLUDE_ONCE ||
1511 (*EG(opline_ptr))->op2.u.constant.value.lval == ZEND_REQUIRE_ONCE))) {
1669 ((*EG(opline_ptr))->op2.u.constant.value.lval != ZEND_INCLUDE_ONCE &&
1670 (*EG(opline_ptr))->op2.u.constant.value.lval != ZEND_REQUIRE_ONCE)) {
1829 (opline->op2.u.constant.value.lval == ZEND_INCLUDE_ONCE ||
1830 opline->op2.u.constant.value.lval == ZEND_REQUIRE_ONCE)) {
1840 filename_len = Z_STRLEN(opline->op1.u.constant);
1931 ((*EG(opline_ptr))->op2.u.constant.value.lval == ZEND_INCLUDE_ONCE ||
1932 (*EG(opline_ptr))->op2.u.constant
[all...]
H A Dzend_accelerator_module.c299 if (zend_hash_find(EG(class_table), Z_STRVAL(EX(opline)->op2.u.constant), Z_STRLEN(EX(opline)->op2.u.constant) + 1, (void **)&pce) == FAILURE ||
300 (zend_hash_find(EG(class_table), Z_STRVAL(EX(opline)->op1.u.constant), Z_STRLEN(EX(opline)->op1.u.constant), (void**)&pce_orig) == SUCCESS &&
H A Dzend_accelerator_util_funcs.c920 if (zend_lookup_class(Z_STRVAL(op_array->opcodes[opline_num - 1].op2.u.constant), Z_STRLEN(op_array->opcodes[opline_num - 1].op2.u.constant), &pce TSRMLS_CC) == SUCCESS) {
953 /* Register __COMPILER_HALT_OFFSET__ constant */
/PHP_5_5/ext/reflection/
H A Dphp_reflection.c1018 static int _extension_const_string(zend_constant *constant TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key) /* {{{ */
1025 if (constant->module_number == module->module_number) {
1026 _const_string(str, constant->name, &constant->value, indent TSRMLS_CC);
2605 Returns whether the default value of this parameter is constant */
2630 Returns the default value's constant name if default value is constant or null */
3986 Returns whether a constant exists or not */
4027 Returns the class' constant specified by its name */
5287 static int _addconstant(zend_constant *constant TSRMLS_D
[all...]
/PHP_5_5/ext/standard/
H A Dbasic_functions.h46 PHP_FUNCTION(constant); variable
/PHP_5_5/Zend/
H A Dzend_API.c3620 zval *constant; local
3623 ALLOC_PERMANENT_ZVAL(constant);
3625 ALLOC_ZVAL(constant);
3627 ZVAL_NULL(constant);
3628 INIT_PZVAL(constant);
3629 return zend_declare_class_constant(ce, name, name_length, constant TSRMLS_CC);
3635 zval *constant; local
3638 ALLOC_PERMANENT_ZVAL(constant);
3640 ALLOC_ZVAL(constant);
3642 ZVAL_LONG(constant, valu
3650 zval *constant; local
3665 zval *constant; local
3680 zval *constant; local
[all...]
H A Dzend_constants.c383 zend_error(E_ERROR, "Undefined class constant '%s::%s'", class_name, constant_name);
393 /* non-class constant */
395 /* compound constant name */
403 /* Check for namespace constant */
405 /* Concatenate lowercase namespace name and constant name */
455 if (zend_hash_quick_find(EG(zend_constants), Z_STRVAL(key->constant), Z_STRLEN(key->constant) + 1, key->hash_value, (void **) &c) == FAILURE) {
457 if (zend_hash_quick_find(EG(zend_constants), Z_STRVAL(key->constant), Z_STRLEN(key->constant) + 1, key->hash_value, (void **) &c) == FAILURE ||
461 if (zend_hash_quick_find(EG(zend_constants), Z_STRVAL(key->constant), Z_STRLE
[all...]
H A Dzend_language_parser.y539 | T_ARRAY { $$.op_type = IS_CONST; Z_TYPE($$.u.constant)=IS_ARRAY; }
540 | T_CALLABLE { $$.op_type = IS_CONST; Z_TYPE($$.u.constant)=IS_CALLABLE; }
546 '(' ')' { Z_LVAL($$.u.constant) = 0; }
548 | '(' yield_expr ')' { Z_LVAL($$.u.constant) = 1; zend_do_pass_param(&$2, ZEND_SEND_VAL, Z_LVAL($$.u.constant) TSRMLS_CC); }
553 expr_without_variable { Z_LVAL($$.u.constant) = 1; zend_do_pass_param(&$1, ZEND_SEND_VAL, Z_LVAL($$.u.constant) TSRMLS_CC); }
554 | variable { Z_LVAL($$.u.constant) = 1; zend_do_pass_param(&$1, ZEND_SEND_VAR, Z_LVAL($$.u.constant) TSRMLS_CC); }
555 | '&' w_variable { Z_LVAL($$.u.constant)
[all...]
H A Dzend_language_scanner.c567 retval_znode.u.constant.type = IS_LONG;
568 retval_znode.u.constant.value.lval = 1;
569 Z_UNSET_ISREF(retval_znode.u.constant);
570 Z_SET_REFCOUNT(retval_znode.u.constant, 1);
4526 /* We create a special __CLASS__ constant that is going to be resolved
H A Dzend_language_scanner.l565 retval_znode.u.constant.type = IS_LONG;
566 retval_znode.u.constant.value.lval = 1;
567 Z_UNSET_ISREF(retval_znode.u.constant);
568 Z_SET_REFCOUNT(retval_znode.u.constant, 1);
1599 /* We create a special __CLASS__ constant that is going to be resolved
H A Dzend_object_handlers.c1015 lc_method_name = Z_STRVAL(key->constant);
1158 lc_function_name = Z_STRVAL(key->constant);
H A Dzend_builtin_functions.c647 Define a new constant */
666 /* class constant, check if there is name and make sure class is valid & exists */
725 Check whether a constant exists */
1902 static int add_constant_info(zend_constant *constant, void *arg TSRMLS_DC) argument
1907 if (!constant->name) {
1913 *const_val = constant->value;
1916 add_assoc_zval_ex(name_array, constant->name, constant->name_len, const_val);
H A Dzend_execute_API.c477 zend_error(E_ERROR, "Cannot declare self-referencing constant '%s'", Z_STRVAL_P(p));
494 zend_error(E_ERROR, "Undefined class constant '%s'", Z_STRVAL_P(p));
530 zend_error(E_ERROR, "Undefined constant '%s'", save);
542 zend_error(E_NOTICE, "Use of undefined constant %s - assumed '%s'", actual, actual);
580 /* First go over the array and see if there are any constant indices */
596 zend_error(E_ERROR, "Undefined class constant '%s'", str_index);
615 zend_error(E_ERROR, "Undefined constant '%s'", save);
617 zend_error(E_NOTICE, "Use of undefined constant %s - assumed '%s'", str_index, str_index);
1027 lc_name = Z_STRVAL(key->constant);
1028 lc_length = Z_STRLEN(key->constant)
[all...]
H A Dzend_compile.c34 (op_array)->literals[op].constant
42 target.constant = zend_add_literal(CG(active_op_array), &(src)->u.constant TSRMLS_CC); \
51 (target)->u.constant = CONSTANT(src.constant); \
387 &op_array->literals[op_array->last_literal - 1].constant == zv &&
414 &op_array->literals[op_array->last_literal - 1].constant == zv &&
447 &op_array->literals[op_array->last_literal - 1].constant == zv &&
481 &op_array->literals[op_array->last_literal - 1].constant == zv &&
505 /* lowercased namespace name & original constant nam
[all...]
H A Dzend_compile.h35 #define FREE_PNODE(znode) zval_dtor(&znode->u.constant);
69 zval constant; member in struct:_zend_literal
78 zend_uint constant; member in union:_znode_op
93 zval constant; /* replaced by literal/zv */ member in union:_znode::__anon1
884 /* disable constant substitution at compile-time */
H A Dzend_opcode.c382 zval_dtor(&literal->constant);
680 nest_levels = Z_LVAL(op_array->literals[opline->op2.constant].constant);
693 if (Z_TYPE(op_array->literals[opline->op2.constant].constant) != IS_LONG) {
694 zend_uint num = opline->op2.constant;
695 opline->op2.zv = &op_array->literals[opline->op2.constant].constant;
697 opline->op2.constant = num;
749 opline->op1.zv = &op_array->literals[opline->op1.constant]
[all...]

Completed in 67 milliseconds

12