Home
last modified time | relevance | path

Searched refs:op1 (Results 1 – 25 of 40) sorted by relevance

12

/PHP-5.6/Zend/
H A Dzend_ast.c107 zval op1, op2; in zend_ast_evaluate() local
114 zval_dtor(&op1); in zend_ast_evaluate()
121 zval_dtor(&op1); in zend_ast_evaluate()
128 zval_dtor(&op1); in zend_ast_evaluate()
135 zval_dtor(&op1); in zend_ast_evaluate()
142 zval_dtor(&op1); in zend_ast_evaluate()
149 zval_dtor(&op1); in zend_ast_evaluate()
156 zval_dtor(&op1); in zend_ast_evaluate()
163 zval_dtor(&op1); in zend_ast_evaluate()
170 zval_dtor(&op1); in zend_ast_evaluate()
[all …]
H A Dzend_operators.h522 : "r"(&op1->value), in fast_increment_function()
535 : "r"(&op1->value), in fast_increment_function()
543 Z_TYPE_P(op1) = IS_DOUBLE; in fast_increment_function()
545 Z_LVAL_P(op1)++; in fast_increment_function()
565 : "r"(&op1->value), in fast_decrement_function()
578 : "r"(&op1->value), in fast_decrement_function()
588 Z_LVAL_P(op1)--; in fast_decrement_function()
617 "r"(&op1->value), in fast_add_function()
640 "r"(&op1->value), in fast_add_function()
707 "r"(&op1->value), in fast_sub_function()
[all …]
H A Dzend_operators.c1226 longer = op1; in bitwise_or_function()
1230 shorter = op1; in bitwise_or_function()
1273 longer = op1; in bitwise_and_function()
1277 shorter = op1; in bitwise_and_function()
1320 longer = op1; in bitwise_xor_function()
1485 memcpy(buf, Z_STRVAL_P(op1), Z_STRLEN_P(op1)); in concat_function()
1703 op_free = Z_OBJ_HT_P(op1)->get(op1 TSRMLS_CC); in compare_function()
2018 Z_DVAL_P(op1) = Z_DVAL_P(op1) + 1; in increment_function()
2057 res = Z_OBJ_HANDLER_P(op1, do_operation)(ZEND_ADD, op1, op1, op2 TSRMLS_CC); in increment_function()
2085 Z_DVAL_P(op1) = Z_DVAL_P(op1) - 1; in decrement_function()
[all …]
H A Dzend_vm_gen.php308 $op1 = "ANY";
372 $op1_type[$op1],
374 $op1_free[$op1],
376 $op1_get_zval_ptr[$op1],
384 $op1_is_tmp_free[$op1],
386 $op1_free_op[$op1],
604 if ($op1 != "ANY") {
630 foreach($op1t as $op1) {
631 if ($op1 != "ANY") {
634 $op1 = "ANY";
[all …]
H A Dzend_ini_parser.y52 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2) in zend_ini_do_op() argument
58 i_op1 = atoi(Z_STRVAL_P(op1)); in zend_ini_do_op()
59 free(Z_STRVAL_P(op1)); in zend_ini_do_op()
109 static void zend_ini_add_string(zval *result, zval *op1, zval *op2) in zend_ini_add_string() argument
113 if (Z_TYPE_P(op1) != IS_STRING) { in zend_ini_add_string()
115 MAKE_COPY_ZVAL(&op1, &copy); in zend_ini_add_string()
117 Z_STRVAL_P(op1) = zend_strndup(Z_STRVAL(copy), Z_STRLEN(copy)); in zend_ini_add_string()
118 Z_STRLEN_P(op1) = Z_STRLEN(copy); in zend_ini_add_string()
122 length = Z_STRLEN_P(op1) + Z_STRLEN_P(op2); in zend_ini_add_string()
124 Z_STRVAL_P(result) = (char *) realloc(Z_STRVAL_P(op1), length+1); in zend_ini_add_string()
[all …]
H A Dzend_vm_execute.h3347 opline->op1.zv, in ZEND_ADD_SPEC_CONST_CONST_HANDLER()
3362 opline->op1.zv, in ZEND_SUB_SPEC_CONST_CONST_HANDLER()
3377 opline->op1.zv, in ZEND_MUL_SPEC_CONST_CONST_HANDLER()
3392 opline->op1.zv, in ZEND_DIV_SPEC_CONST_CONST_HANDLER()
3407 opline->op1.zv, in ZEND_MOD_SPEC_CONST_CONST_HANDLER()
3422 opline->op1.zv, in ZEND_SL_SPEC_CONST_CONST_HANDLER()
3437 opline->op1.zv, in ZEND_SR_SPEC_CONST_CONST_HANDLER()
3452 opline->op1.zv, in ZEND_CONCAT_SPEC_CONST_CONST_HANDLER()
3467 opline->op1.zv, in ZEND_IS_IDENTICAL_SPEC_CONST_CONST_HANDLER()
3483 opline->op1.zv, in ZEND_IS_NOT_IDENTICAL_SPEC_CONST_CONST_HANDLER()
[all …]
H A Dzend_compile.c591 SET_NODE(opline->op1, op1); in zend_do_binary_op()
604 SET_NODE(opline->op1, op1); in zend_do_unary_op()
653 SET_NODE(opline->op1, op1); in zend_do_binary_assign_op()
1197 SET_NODE(opline->op1, op1); in zend_do_pre_incdec()
1224 SET_NODE(opline->op1, op1); in zend_do_post_incdec()
1423 SET_NODE(opline->op1, op1); in zend_do_add_string()
1442 SET_NODE(opline->op1, op1); in zend_do_add_variable()
1460 SET_NODE(opline->op1, op1); in zend_do_free()
4600 op1 = opline->op1.zv; in do_bind_function()
4702 op1 = opline->op1.zv; in do_bind_class()
[all …]
H A Dzend_ast.h51 ZEND_API zend_ast *zend_ast_create_binary(uint kind, zend_ast *op0, zend_ast *op1);
52 ZEND_API zend_ast *zend_ast_create_ternary(uint kind, zend_ast *op0, zend_ast *op1, zend_ast *op2);
H A Dzend_opcode.c585 SET_UNUSED(opline->op1); in zend_resolve_finally_call()
593 opline->op1.opline_num = get_next_op_number(op_array); in zend_resolve_finally_call()
597 SET_UNUSED(opline->op1); in zend_resolve_finally_call()
603 opline->op1.opline_num = op_array->try_catch_array[i].finally_op; in zend_resolve_finally_call()
616 SET_UNUSED(opline->op1); in zend_resolve_finally_call()
618 opline->op1.opline_num = op_array->try_catch_array[i].finally_op; in zend_resolve_finally_call()
629 SET_UNUSED(opline->op1); in zend_resolve_finally_call()
631 opline->op1.opline_num = start_op; in zend_resolve_finally_call()
686 if ((array_offset = opline->op1.opline_num) != -1) { in zend_resolve_finally_calls()
754 opline->op1.zv = &op_array->literals[opline->op1.constant].constant; in pass_two()
[all …]
H A Dzend_vm_def.h2539 …ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), opline->op1.…
2962 } else if (EX_T(opline->op1.var).var.ptr_ptr == &EX_T(opline->op1.var).var.ptr) {
3047 …ch_ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), opline->o…
3573 ZEND_VM_JMP(opline->op1.jmp_addr);
3765 …ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), opline->op1.…
4115 EX_CV(opline->op1.var) = NULL;
4118 EX_CV(opline->op1.var) = NULL;
4618 if (EX_CV(opline->op1.var)) {
4619 value = EX_CV(opline->op1.var);
5103 …_quick_find(EG(class_table), Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), Z_HASH_P(opli…
[all …]
H A Dzend_compile.h113 znode_op op1; member
466 void zend_do_binary_op(zend_uchar op, znode *result, const znode *op1, const znode *op2 TSRMLS_DC);
467 void zend_do_unary_op(zend_uchar op, znode *result, const znode *op1 TSRMLS_DC);
468 void zend_do_binary_assign_op(zend_uchar op, znode *result, const znode *op1, const znode *op2 TSRM…
502 void zend_do_pre_incdec(znode *result, const znode *op1, zend_uchar op TSRMLS_DC);
503 void zend_do_post_incdec(znode *result, const znode *op1, zend_uchar op TSRMLS_DC);
510 void zend_do_free(znode *op1 TSRMLS_DC);
512 void zend_do_add_string(znode *result, const znode *op1, znode *op2 TSRMLS_DC);
513 void zend_do_add_variable(znode *result, const znode *op1, const znode *op2 TSRMLS_DC);
614 void zend_do_include_or_eval(int type, znode *result, const znode *op1 TSRMLS_DC);
/PHP-5.6/ext/opcache/Optimizer/
H A Dzend_optimizer_internal.h44 …mset(&opline->result,0,sizeof(opline->result)); memset(&opline->op1,0,sizeof(opline->op1)); memset…
47 …SAME_VAR(op1, op2) ((((op1 ## _type & IS_VAR) && (op2 ## _type & IS_VAR)) || (op1 ## _type == IS_T… argument
49 …eof(znode)); memset(&opline->op1,0,sizeof(znode)); memset(&opline->op2,0,sizeof(znode)); opline->r…
52 …ne SAME_VAR(op1, op2) (((op1.op_type == IS_VAR && op2.op_type == IS_VAR) || (op1.op_type == IS_TM… argument
H A Dblock_pass.c651 VAR_UNSET(opline->op1); in zend_optimize_block()
695 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
826 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
862 VAR_UNSET(opline->op1); in zend_optimize_block()
881 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
902 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
968 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
1080 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
1114 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
1145 COPY_NODE(opline->op1, src->op1); in zend_optimize_block()
[all …]
H A Dpass3.c80 znode_op tmp = opline->op1;
82 znode tmp = opline->op1;
87 COPY_NODE(opline->op1, opline->op2);
210 SAME_VAR(opline->op1, op_array->opcodes[target].op1)) {
216 SAME_VAR(opline->op1, op_array->opcodes[target].op1)) {
223 SAME_VAR(opline->op1, op_array->opcodes[target].op1)) {
229 SAME_VAR(opline->op1, op_array->opcodes[target].op1)) {
270 SAME_VAR(op_array->opcodes[target].op1, T)) {
279 SAME_VAR(op_array->opcodes[target].op1, T)) {
292 SAME_VAR(opline->op1, op_array->opcodes[target].op1)) {
H A Dcompact_literals.c112 LITERAL_INFO(opline->op1.constant, LITERAL_FUNC, 1, 1, 1); in optimizer_compact_literals()
127 opline->op1, in optimizer_compact_literals()
135 LITERAL_INFO(opline->op1.constant, LITERAL_CLASS, 1, 1, 2); in optimizer_compact_literals()
141 opline->op1, in optimizer_compact_literals()
148 LITERAL_INFO(opline->op1.constant, LITERAL_CLASS, 1, 1, 2); in optimizer_compact_literals()
164 opline->op1, in optimizer_compact_literals()
191 opline->op1.constant, in optimizer_compact_literals()
221 opline->op1, in optimizer_compact_literals()
243 opline->op1, in optimizer_compact_literals()
254 LITERAL_INFO(opline->op1.constant, LITERAL_VALUE, 1, 0, 1); in optimizer_compact_literals()
[all …]
H A Dzend_optimizer.c157 opline->op1.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC); in update_op1_const()
159 op_array->literals[opline->op1.constant].cache_slot = op_array->last_cache_slot++; in update_op1_const()
162 …e->op1.constant+1].hash_value = zend_hash_func(Z_STRVAL(op_array->literals[opline->op1.constant+1]… in update_op1_const()
166 opline->op1.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC); in update_op1_const()
168 op_array->literals[opline->op1.constant].cache_slot = op_array->last_cache_slot++; in update_op1_const()
171 opline->op1.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC); in update_op1_const()
176 opline->op1.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC); in update_op1_const()
553 opline->op1.constant = opline->op1.literal - op_array->literals; in zend_accel_optimize()
594 opline->op1.zv = &op_array->literals[opline->op1.constant].constant; in zend_accel_optimize()
H A Dpass1_5.c48 int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC) = get_binary_op(opline->opcode);
281 Z_STRVAL(op_array->literals[opline->op1.constant + 1].constant),
282 Z_STRLEN(op_array->literals[opline->op1.constant].constant) + 1,
283 Z_HASH_P(&op_array->literals[opline->op1.constant + 1].constant),
566 if (op->op1_type == IS_VAR && op->op1.var == var) {
584 if (use->op1_type == IS_VAR && use->op1.var == var) {
586 use->op1.var = zend_optimizer_lookup_cv(op_array,
H A Dpass2.c115 COPY_NODE(opline->op1, opline->op2);
132 COPY_NODE(opline->op2, (opline + 1)->op1);
/PHP-5.6/Zend/tests/
H A Dbug37046.phpt11 echo "op1 $k\n";
20 op1 0
23 op1 1
/PHP-5.6/ext/intl/collator/
H A Dcollator_sort.c53 static int collator_regular_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in collator_regular_compare_function() argument
59 zval* str1 = collator_convert_object_to_string( op1 TSRMLS_CC ); in collator_regular_compare_function()
148 static int collator_numeric_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in collator_numeric_compare_function() argument
154 if( Z_TYPE_P(op1) == IS_STRING ) in collator_numeric_compare_function()
156 num1 = collator_convert_string_to_double( op1 ); in collator_numeric_compare_function()
157 op1 = num1; in collator_numeric_compare_function()
166 rc = numeric_compare_function( result, op1, op2 TSRMLS_CC); in collator_numeric_compare_function()
180 static int collator_icu_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in collator_icu_compare_function() argument
187 str1 = collator_make_printable_zval( op1 ); in collator_icu_compare_function()
H A Dcollator_sort.h23 typedef int (*collator_compare_func_t)( zval *result, zval *op1, zval *op2 TSRMLS_DC );
/PHP-5.6/ext/opcache/
H A DZendAccelerator.h375 # define ZEND_OP1(opline) (opline)->op1
376 # define ZEND_OP1_CONST(opline) (*(opline)->op1.zv)
377 # define ZEND_OP1_LITERAL(opline) (op_array)->literals[(opline)->op1.constant].constant
393 # define ZEND_OP1_TYPE(opline) (opline)->op1.op_type
394 # define ZEND_OP1(opline) (opline)->op1.u
395 # define ZEND_OP1_CONST(opline) (opline)->op1.u.constant
396 # define ZEND_OP1_LITERAL(opline) (opline)->op1.u.constant
/PHP-5.6/ext/standard/
H A Dphp_string.h146 PHPAPI int string_natural_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_in…
147 PHPAPI int string_natural_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
148 PHPAPI int string_natural_case_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
/PHP-5.6/sapi/phpdbg/
H A Dphpdbg_opcode.c90 asprintf(&decode[1], "J%ld", op->op1.jmp_addr - ops->opcodes); in phpdbg_decode_opline()
94 decode[1] = phpdbg_decode_op(ops, &op->op1, op->op1_type, vars TSRMLS_CC); in phpdbg_decode_opline()
110 decode[1] = phpdbg_decode_op(ops, &op->op1, op->op1_type, vars TSRMLS_CC); in phpdbg_decode_opline()
119 decode[1] = phpdbg_decode_op(ops, &op->op1, op->op1_type, vars TSRMLS_CC); in phpdbg_decode_opline()
/PHP-5.6/ext/gmp/
H A Dgmp.c515 FETCH_GMP_ZVAL(gmpnum_op, op1, temp); in shift_operator_helper()
524 result, op1, op2, op, (gmp_binary_ui_op_t) uop, \
533 gmp_zval_unary_op(result, op1, op TSRMLS_CC); \
546 shift_operator_helper(mpz_pow_ui, result, op1, op2 TSRMLS_CC); in gmp_do_operation_ex()
553 shift_operator_helper(mpz_mul_2exp, result, op1, op2 TSRMLS_CC); in gmp_do_operation_ex()
578 if (result == op1) { in gmp_do_operation()
579 ZVAL_COPY_VALUE(&op1_copy, op1); in gmp_do_operation()
580 op1 = &op1_copy; in gmp_do_operation()
585 if (retval == SUCCESS && op1 == &op1_copy) { in gmp_do_operation()
586 zval_dtor(op1); in gmp_do_operation()
[all …]

Completed in 193 milliseconds

12