| /PHP_TRUNK/ext/mysqli/tests/ |
| H A D | reflection_tools.inc | 55 foreach ($constant as $name => $value)
|
| /PHP_TRUNK/Zend/ |
| H A D | zend_constants.c | 383 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 D | zend_opcode.c | 381 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 D | zend_API.c | 3615 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 D | zend_language_parser.y | 539 | 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 D | zend_compile.h | 35 #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 D | zend_execute_API.c | 481 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 D | zend_language_scanner.c | 564 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 D | zend_language_scanner.l | 562 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
|
| H A D | zend_object_handlers.c | 1015 lc_method_name = Z_STRVAL(key->constant); 1158 lc_function_name = Z_STRVAL(key->constant);
|
| H A D | zend_builtin_functions.c | 647 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 D | zend_compile.c | 34 (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...] |
| /PHP_TRUNK/ext/standard/ |
| H A D | basic_functions.h | 46 PHP_FUNCTION(constant); variable
|
| /PHP_TRUNK/ext/intl/breakiterator/ |
| H A D | breakiterator_iterators.cpp | 261 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/ |
| H A D | zend_persist.c | 231 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 D | zend_persist_calc.c | 146 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 D | zend_accelerator_module.c | 270 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 D | ZendAccelerator.c | 446 /* constant hash keys */ 1486 ((*EG(opline_ptr))->op2.u.constant.value.lval == ZEND_INCLUDE_ONCE || 1487 (*EG(opline_ptr))->op2.u.constant.value.lval == ZEND_REQUIRE_ONCE))) { 1643 ((*EG(opline_ptr))->op2.u.constant.value.lval != ZEND_INCLUDE_ONCE && 1644 (*EG(opline_ptr))->op2.u.constant.value.lval != ZEND_REQUIRE_ONCE)) { 1792 (opline->op2.u.constant.value.lval == ZEND_INCLUDE_ONCE || 1793 opline->op2.u.constant.value.lval == ZEND_REQUIRE_ONCE)) { 1803 filename_len = Z_STRLEN(opline->op1.u.constant); 1894 ((*EG(opline_ptr))->op2.u.constant.value.lval == ZEND_INCLUDE_ONCE || 1895 (*EG(opline_ptr))->op2.u.constant [all...] |
| H A D | ZendAccelerator.h | 355 # define ZEND_OP1_LITERAL(opline) (op_array)->literals[(opline)->op1.constant].constant 359 # define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant].constant 373 # define ZEND_OP1_CONST(opline) (opline)->op1.u.constant 374 # define ZEND_OP1_LITERAL(opline) (opline)->op1.u.constant 377 # define ZEND_OP2_CONST(opline) (opline)->op2.u.constant 378 # define ZEND_OP2_LITERAL(opline) (opline)->op2.u.constant
|
| H A D | zend_accelerator_util_funcs.c | 866 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_TRUNK/ext/reflection/ |
| H A D | php_reflection.c | 1018 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_TRUNK/ext/opcache/Optimizer/ |
| H A D | compact_literals.c | 56 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 D | pass1_5.c | 3 * - 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 D | zend_optimizer.c | 68 op_array->literals[i].constant = *zv;
71 Z_SET_REFCOUNT(op_array->literals[i].constant, 2);
72 Z_SET_ISREF(op_array->literals[i].constant);
79 op.constant = zend_optimizer_add_literal(op_array, &_c TSRMLS_CC); \
85 op.constant = zend_optimizer_add_literal(op_array, &_c TSRMLS_CC); \
100 # define LITERAL_LONG(op, val) ZVAL_LONG(&op.u.constant, val)
102 # define LITERAL_BOOL(op, val) ZVAL_BOOL(&op.u.constant, val)
129 * - perform compile-time evaluation of constant binary and unary operations
137 * - optimize constant conditional JMPs
195 opline->op1.constant [all...] |
| H A D | optimize_func_calls.c | 28 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...] |