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/Zend/
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_opcode.c381 zval_dtor(&literal->constant);
619 nest_levels = Z_LVAL(op_array->literals[opline->op2.constant].constant);
631 if (Z_TYPE(op_array->literals[opline->op2.constant].constant) != IS_LONG) {
632 zend_uint num = opline->op2.constant;
633 opline->op2.zv = &op_array->literals[opline->op2.constant].constant;
635 opline->op2.constant = num;
684 opline->op1.zv = &op_array->literals[opline->op1.constant]
[all...]
H A Dzend_API.c3615 zval *constant; local
3618 ALLOC_PERMANENT_ZVAL(constant);
3620 ALLOC_ZVAL(constant);
3622 ZVAL_NULL(constant);
3623 INIT_PZVAL(constant);
3624 return zend_declare_class_constant(ce, name, name_length, constant TSRMLS_CC);
3630 zval *constant; local
3633 ALLOC_PERMANENT_ZVAL(constant);
3635 ALLOC_ZVAL(constant);
3637 ZVAL_LONG(constant, valu
3645 zval *constant; local
3660 zval *constant; local
3675 zval *constant; local
[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_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
881 /* disable constant substitution at compile-time */
H A Dzend_execute_API.c481 zend_error(E_ERROR, "Cannot declare self-referencing constant '%s'", Z_STRVAL_P(p));
498 zend_error(E_ERROR, "Undefined class constant '%s'", Z_STRVAL_P(p));
534 zend_error(E_ERROR, "Undefined constant '%s'", save);
546 zend_error(E_NOTICE, "Use of undefined constant %s - assumed '%s'", actual, actual);
584 /* First go over the array and see if there are any constant indices */
600 zend_error(E_ERROR, "Undefined class constant '%s'", str_index);
619 zend_error(E_ERROR, "Undefined constant '%s'", save);
621 zend_error(E_NOTICE, "Use of undefined constant %s - assumed '%s'", str_index, str_index);
1031 lc_name = Z_STRVAL(key->constant);
1032 lc_length = Z_STRLEN(key->constant)
[all...]
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 */
1909 static int add_constant_info(zend_constant *constant, void *arg TSRMLS_DC) argument
1915 *const_val = constant->value;
1918 add_assoc_zval_ex(name_array, constant->name, constant->name_len, const_val);
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_language_scanner.c564 retval_znode.u.constant.type = IS_LONG;
565 retval_znode.u.constant.value.lval = 1;
566 Z_UNSET_ISREF(retval_znode.u.constant);
567 Z_SET_REFCOUNT(retval_znode.u.constant, 1);
4522 /* We create a special __CLASS__ constant that is going to be resolved
H A Dzend_language_scanner.l562 retval_znode.u.constant.type = IS_LONG;
563 retval_znode.u.constant.value.lval = 1;
564 Z_UNSET_ISREF(retval_znode.u.constant);
565 Z_SET_REFCOUNT(retval_znode.u.constant, 1);
1595 /* We create a special __CLASS__ constant that is going to be resolved
/PHP_5_5/ext/standard/
H A Dbasic_functions.h46 PHP_FUNCTION(constant); variable
/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/
H A Dzend_persist.c231 zend_persist_zval(&p->constant TSRMLS_CC);
232 zend_protect_zval(&p->constant TSRMLS_CC);
253 zend_persist_zval(&opline->op1.u.constant TSRMLS_CC);
254 zend_protect_zval(&opline->op1.u.constant TSRMLS_CC);
261 zend_persist_zval(&opline->op2.u.constant TSRMLS_CC);
262 zend_protect_zval(&opline->op2.u.constant TSRMLS_CC);
H A Dzend_persist_calc.c146 ADD_SIZE(zend_persist_zval_calc(&p->constant TSRMLS_CC));
160 ADD_SIZE(zend_persist_zval_calc(&opline->op1.u.constant TSRMLS_CC));
163 ADD_SIZE(zend_persist_zval_calc(&opline->op2.u.constant TSRMLS_CC));
H A DZendAccelerator.c446 /* constant hash keys */
1482 ((*EG(opline_ptr))->op2.u.constant.value.lval == ZEND_INCLUDE_ONCE ||
1483 (*EG(opline_ptr))->op2.u.constant.value.lval == ZEND_REQUIRE_ONCE))) {
1639 ((*EG(opline_ptr))->op2.u.constant.value.lval != ZEND_INCLUDE_ONCE &&
1640 (*EG(opline_ptr))->op2.u.constant.value.lval != ZEND_REQUIRE_ONCE)) {
1788 (opline->op2.u.constant.value.lval == ZEND_INCLUDE_ONCE ||
1789 opline->op2.u.constant.value.lval == ZEND_REQUIRE_ONCE)) {
1799 filename_len = Z_STRLEN(opline->op1.u.constant);
1890 ((*EG(opline_ptr))->op2.u.constant.value.lval == ZEND_INCLUDE_ONCE ||
1891 (*EG(opline_ptr))->op2.u.constant
[all...]
H A DZendAccelerator.h354 # define ZEND_OP1_LITERAL(opline) (op_array)->literals[(opline)->op1.constant].constant
358 # define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant].constant
372 # define ZEND_OP1_CONST(opline) (opline)->op1.u.constant
373 # define ZEND_OP1_LITERAL(opline) (opline)->op1.u.constant
376 # define ZEND_OP2_CONST(opline) (opline)->op2.u.constant
377 # define ZEND_OP2_LITERAL(opline) (opline)->op2.u.constant
H A Dzend_accelerator_module.c270 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 ||
271 (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.c866 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) {
899 /* 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);
2608 Returns whether the default value of this parameter is constant */
2633 Returns the default value's constant name if default value is constant or null */
3989 Returns whether a constant exists or not */
4030 Returns the class' constant specified by its name */
5301 static int _addconstant(zend_constant *constant TSRMLS_D
[all...]
/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 */
51 /* evaluate constant expression */
64 /* substitute the following TMP_VAR usage with constant */
74 tmp_opline->op1.constant = zend_optimizer_add_literal(op_array, &result TSRMLS_CC);
81 op_array->literals[tmp_opline->op1.constant].cache_slot = op_array->last_cache_slot++;
95 tmp_opline->op2.constant = zend_optimizer_add_literal(op_array, &result TSRMLS_CC);
111 op_array->literals[tmp_opline->op2.constant].cache_slot = op_array->last_cache_slot++;
128 op_array->literals[tmp_opline->op2.constant].cache_slot = op_array->last_cache_slot;
142 op_array->literals[tmp_opline->op2.constant]
[all...]
H A Dzend_optimizer.c40 op_array->literals[i].constant = *zv;
43 Z_SET_REFCOUNT(op_array->literals[i].constant, 2);
44 Z_SET_ISREF(op_array->literals[i].constant);
51 op.constant = zend_optimizer_add_literal(op_array, &_c TSRMLS_CC); \
57 op.constant = zend_optimizer_add_literal(op_array, &_c TSRMLS_CC); \
72 # define LITERAL_LONG(op, val) ZVAL_LONG(&op.u.constant, val)
74 # define LITERAL_BOOL(op, val) ZVAL_BOOL(&op.u.constant, val)
97 * - perform compile-time evaluation of constant binary and unary operations
106 * - optimize constant conditional JMPs

Completed in 69 milliseconds

12