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

12

/PHP_TRUNK/ext/mysqli/tests/
H A Dreflection_tools.inc55 foreach ($constant as $name => $value)
/PHP_TRUNK/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_TRUNK/ext/opcache/Optimizer/
H A Dcompact_literals.c56 int constant,
66 if (Z_TYPE(op_array->literals[constant].constant) == IS_STRING &&
68 LITERAL_INFO_OBJ(constant, kind, 1, slots, related, op_array->this_var);
70 LITERAL_INFO(constant, kind, 0, slots, related);
77 int constant,
84 LITERAL_INFO_CLASS(constant, kind, 1, slots, related, op.constant);
86 LITERAL_INFO(constant, kind, 0, slots, related);
112 LITERAL_INFO(opline->op1.constant, LITERAL_FUN
53 optimizer_literal_obj_info(literal_info *info, zend_uchar op_type, znode_op op, int constant, zend_uint kind, zend_uint slots, zend_uint related, zend_op_array *op_array) argument
74 optimizer_literal_class_info(literal_info *info, zend_uchar op_type, znode_op op, int constant, zend_uint kind, zend_uint slots, zend_uint related, zend_op_array *op_array) argument
[all...]
H A Doptimize_func_calls.c28 zval *function_name = &op_array->literals[opline->op2.constant + 1].constant;
56 opline->op1.constant = fcall->op2.constant + 1;
57 op_array->literals[fcall->op2.constant + 1].cache_slot = op_array->literals[fcall->op2.constant].cache_slot;
60 literal_dtor(&op_array->literals[fcall->op2.constant + 2].constant);
72 opline->op1.constant = fcall->op2.constant
[all...]
H A Dpass1_5.c3 * - perform compile-time evaluation of constant binary and unary operations
6 * - pre-evaluate constant function calls
46 /* binary operation with constant operands */
60 /* evaluate constant expression */
82 /* cast of constant operand */
119 /* unary operation on constant operand */
224 /* substitute __COMPILER_HALT_OFFSET__ constant */
261 /* class constant */
277 Z_STRVAL(op_array->literals[opline->op1.constant + 1].constant),
[all...]
H A Dzend_optimizer.c98 op_array->literals[i].constant = *zv;
101 Z_SET_REFCOUNT(op_array->literals[i].constant, 2);
102 Z_SET_ISREF(op_array->literals[i].constant);
109 op.constant = zend_optimizer_add_literal(op_array, &_c TSRMLS_CC); \
115 op.constant = zend_optimizer_add_literal(op_array, &_c TSRMLS_CC); \
130 # define LITERAL_LONG(op, val) ZVAL_LONG(&op.u.constant, val)
132 # define LITERAL_BOOL(op, val) ZVAL_BOOL(&op.u.constant, val)
157 opline->op1.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC);
159 op_array->literals[opline->op1.constant].cache_slot = op_array->last_cache_slot++;
162 op_array->literals[opline->op1.constant
[all...]
/PHP_TRUNK/Zend/
H A Dzend_language_scanner.l565 INIT_PZVAL(&retval_znode.u.constant);
566 ZVAL_LONG(&retval_znode.u.constant, 1);
1588 /* We create a special __CLASS__ constant that is going to be resolved
H A Dzend_language_parser.y574 | T_ARRAY { $$.op_type = IS_CONST; Z_TYPE($$.u.constant)=IS_ARRAY; }
575 | T_CALLABLE { $$.op_type = IS_CONST; Z_TYPE($$.u.constant)=IS_CALLABLE; }
581 '(' ')' { Z_LVAL($$.u.constant) = 0; }
628 variable_modifiers { CG(access_type) = Z_LVAL($1.u.constant); } class_variable_declaration ';'
670 fully_qualified_class_name { zend_resolve_class_name(&$1 TSRMLS_CC); zend_init_list(&$$.u.op.ptr, Z_STRVAL($1.u.constant) TSRMLS_CC); }
671 | trait_reference_list ',' fully_qualified_class_name { zend_resolve_class_name(&$3 TSRMLS_CC); zend_add_to_list(&$1.u.op.ptr, Z_STRVAL($3.u.constant) TSRMLS_CC); $$ = $1; }
689 /* empty */ { Z_LVAL($$.u.constant) = 0x0; } /* No change of methods visibility */
694 ';' /* abstract method */ { Z_LVAL($$.u.constant) = ZEND_ACC_ABSTRACT; }
695 | '{' inner_statement_list '}' { Z_LVAL($$.u.constant) = 0; }
700 | T_VAR { Z_LVAL($$.u.constant)
[all...]
H A Dzend_API.c3631 zval *constant; local
3634 ALLOC_PERMANENT_ZVAL(constant);
3636 ALLOC_ZVAL(constant);
3638 ZVAL_NULL(constant);
3639 INIT_PZVAL(constant);
3640 return zend_declare_class_constant(ce, name, name_length, constant TSRMLS_CC);
3646 zval *constant; local
3649 ALLOC_PERMANENT_ZVAL(constant);
3651 ALLOC_ZVAL(constant);
3653 ZVAL_LONG(constant, valu
3661 zval *constant; local
3676 zval *constant; local
3691 zval *constant; local
[all...]
H A Dzend_constants.c370 zend_error(E_ERROR, "Undefined class constant '%s::%s'", class_name, constant_name);
380 /* non-class constant */
382 /* compound constant name */
390 /* Check for namespace constant */
392 /* Concatenate lowercase namespace name and constant name */
442 if (zend_hash_quick_find(EG(zend_constants), Z_STRVAL(key->constant), Z_STRLEN(key->constant) + 1, key->hash_value, (void **) &c) == FAILURE) {
444 if (zend_hash_quick_find(EG(zend_constants), Z_STRVAL(key->constant), Z_STRLEN(key->constant) + 1, key->hash_value, (void **) &c) == FAILURE ||
448 if (zend_hash_quick_find(EG(zend_constants), Z_STRVAL(key->constant), Z_STRLE
[all...]
H A Dzend_object_handlers.c1045 lc_method_name = Z_STRVAL(key->constant);
1185 lc_function_name = Z_STRVAL(key->constant);
H A Dzend_builtin_functions.c650 Define a new constant */
669 /* class constant, check if there is name and make sure class is valid & exists */
728 Check whether a constant exists */
1912 static int add_constant_info(zend_constant *constant, void *arg TSRMLS_DC) argument
1917 if (!constant->name) {
1923 *const_val = constant->value;
1926 add_assoc_zval_ex(name_array, constant->name, constant->name_len, const_val);
H A Dzend_execute_API.c464 zend_error(E_ERROR, "Cannot declare self-referencing constant '%s'", Z_STRVAL_P(p));
481 zend_error(E_ERROR, "Undefined class constant '%s'", Z_STRVAL_P(p));
517 zend_error(E_ERROR, "Undefined constant '%s'", save);
529 zend_error(E_NOTICE, "Use of undefined constant %s - assumed '%s'", actual, actual);
922 lc_name = Z_STRVAL(key->constant);
923 lc_length = Z_STRLEN(key->constant) + 1;
1158 ret_opline->op1.constant = zend_add_literal(CG(active_op_array), &EG(uninitialized_zval) TSRMLS_CC);
1170 opline->op1.zv = &CG(active_op_array)->literals[opline->op1.constant].constant;
1173 opline->op2.zv = &CG(active_op_array)->literals[opline->op2.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); \
391 &op_array->literals[op_array->last_literal - 1].constant == zv &&
418 &op_array->literals[op_array->last_literal - 1].constant == zv &&
455 &op_array->literals[op_array->last_literal - 1].constant == zv &&
489 &op_array->literals[op_array->last_literal - 1].constant == zv &&
513 /* lowercased namespace name & original constant nam
[all...]
H A Dzend_compile.h36 #define FREE_PNODE(znode) zval_dtor(&znode->u.constant);
70 zval constant; member in struct:_zend_literal
79 zend_uint constant; member in union:_znode_op
94 zval constant; /* replaced by literal/zv */ member in union:_znode::__anon1
906 /* 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...]
/PHP_TRUNK/ext/standard/
H A Dbasic_functions.h46 PHP_FUNCTION(constant); variable
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c456 /* constant hash keys */
1523 ((*EG(opline_ptr))->op2.u.constant.value.lval == ZEND_INCLUDE_ONCE ||
1524 (*EG(opline_ptr))->op2.u.constant.value.lval == ZEND_REQUIRE_ONCE))) {
1682 ((*EG(opline_ptr))->op2.u.constant.value.lval != ZEND_INCLUDE_ONCE &&
1683 (*EG(opline_ptr))->op2.u.constant.value.lval != ZEND_REQUIRE_ONCE)) {
1842 (opline->op2.u.constant.value.lval == ZEND_INCLUDE_ONCE ||
1843 opline->op2.u.constant.value.lval == ZEND_REQUIRE_ONCE)) {
1853 filename_len = Z_STRLEN(opline->op1.u.constant);
1944 ((*EG(opline_ptr))->op2.u.constant.value.lval == ZEND_INCLUDE_ONCE ||
1945 (*EG(opline_ptr))->op2.u.constant
[all...]
H A Dzend_persist_calc.c177 ADD_SIZE(zend_persist_zval_calc(&p->constant TSRMLS_CC));
191 ADD_SIZE(zend_persist_zval_calc(&opline->op1.u.constant TSRMLS_CC));
194 ADD_SIZE(zend_persist_zval_calc(&opline->op2.u.constant TSRMLS_CC));
H A Dzend_accelerator_module.c303 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 ||
304 (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 DZendAccelerator.h371 # define ZEND_OP1_LITERAL(opline) (op_array)->literals[(opline)->op1.constant].constant
375 # define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant].constant
389 # define ZEND_OP1_CONST(opline) (opline)->op1.u.constant
390 # define ZEND_OP1_LITERAL(opline) (opline)->op1.u.constant
393 # define ZEND_OP2_CONST(opline) (opline)->op2.u.constant
394 # define ZEND_OP2_LITERAL(opline) (opline)->op2.u.constant
H A Dzend_persist.c266 zend_persist_zval(&p->constant TSRMLS_CC);
267 zend_protect_zval(&p->constant TSRMLS_CC);
288 zend_persist_zval(&opline->op1.u.constant TSRMLS_CC);
289 zend_protect_zval(&opline->op1.u.constant TSRMLS_CC);
296 zend_persist_zval(&opline->op2.u.constant TSRMLS_CC);
297 zend_protect_zval(&opline->op2.u.constant TSRMLS_CC);
H A Dzend_accelerator_util_funcs.c982 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) {
1015 /* Register __COMPILER_HALT_OFFSET__ constant */
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_info.c232 if (Z_TYPE(ops->literals[literal].constant) != IS_NULL) {
235 &ops->literals[literal].constant, 0);
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c1026 static int _extension_const_string(zend_constant *constant TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key) /* {{{ */
1033 if (constant->module_number == module->module_number) {
1034 _const_string(str, constant->name, &constant->value, indent TSRMLS_CC);
2616 Returns whether the default value of this parameter is constant */
2641 Returns the default value's constant name if default value is constant or null */
4021 Returns whether a constant exists or not */
4062 Returns the class' constant specified by its name */
5322 static int _addconstant(zend_constant *constant TSRMLS_D
[all...]

Completed in 57 milliseconds

12