/PHP-7.1/Zend/ |
H A D | zend_operators.c | 950 op1 = Z_REFVAL_P(op1); in add_function() 997 op1 = Z_REFVAL_P(op1); in sub_function() 1049 op1 = Z_REFVAL_P(op1); in mul_function() 1132 op1 = Z_REFVAL_P(op1); in pow_function() 1217 op1 = Z_REFVAL_P(op1); in div_function() 1285 op1 = Z_REFVAL_P(op1); in boolean_xor_function() 1332 op1 = Z_REFVAL_P(op1); in boolean_not_function() 1379 op1 = Z_REFVAL_P(op1); in bitwise_not_function() 1699 op1 = Z_REFVAL_P(op1); in concat_function() 2412 op1 = Z_REFVAL_P(op1); in increment_function() [all …]
|
H A D | zend_operators.h | 456 : "r"(&op1->value), in fast_long_increment_function() 469 : "r"(&op1->value), in fast_long_increment_function() 478 Z_LVAL_P(op1)++; in fast_long_increment_function() 494 : "r"(&op1->value), in fast_long_decrement_function() 507 : "r"(&op1->value), in fast_long_decrement_function() 516 Z_LVAL_P(op1)--; in fast_long_decrement_function() 543 "r"(&op1->value), in fast_long_add_function() 566 "r"(&op1->value), in fast_long_add_function() 636 "r"(&op1->value), in fast_long_sub_function() 663 "r"(&op1->value), in fast_long_sub_function() [all …]
|
H A D | zend_vm_gen.php | 633 $op1 = "ANY"; 652 $op1 = "ANY"; 751 $op1_type[$op1], 753 $op1_free[$op1], 775 $op1_free_op[$op1], 1095 if ($op1 != "ANY") { 1097 if ($op1 == "TMP" || $op1 == "VAR") { 1103 $op1 = "ANY"; 1109 $op1 = "ANY"; 1112 $do($op1, "ANY"); [all …]
|
H A D | zend_vm_execute.h | 4146 op1 = EX_CONSTANT(opline->op1); 4189 op1 = EX_CONSTANT(opline->op1); 4232 op1 = EX_CONSTANT(opline->op1); 4279 op1 = EX_CONSTANT(opline->op1); 4293 op1 = EX_CONSTANT(opline->op1); 4331 op1 = EX_CONSTANT(opline->op1); 4359 op1 = EX_CONSTANT(opline->op1); 4388 op1 = EX_CONSTANT(opline->op1); 4403 op1 = EX_CONSTANT(opline->op1); 22214 op1 = Z_INDIRECT_P(op1); [all …]
|
H A D | zend_vm_def.h | 60 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 103 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 149 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 202 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 230 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 258 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 435 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 503 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 553 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); 603 op1 = GET_OP1_UNDEF_CV(op1, BP_VAR_R); [all …]
|
H A D | zend_ini_parser.y | 53 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2) in zend_ini_do_op() argument 60 if (IS_LONG == Z_TYPE_P(op1)) { in zend_ini_do_op() 61 i_op1 = Z_LVAL_P(op1); in zend_ini_do_op() 63 i_op1 = atoi(Z_STRVAL_P(op1)); in zend_ini_do_op() 64 zend_string_free(Z_STR_P(op1)); in zend_ini_do_op() 117 static void zend_ini_add_string(zval *result, zval *op1, zval *op2) in zend_ini_add_string() argument 121 if (Z_TYPE_P(op1) != IS_STRING) { in zend_ini_add_string() 122 zend_string *str = zval_get_string(op1); in zend_ini_add_string() 125 ZVAL_PSTRINGL(op1, ZSTR_VAL(str), ZSTR_LEN(str)); in zend_ini_add_string() 128 ZVAL_STR(op1, str); in zend_ini_add_string() [all …]
|
H A D | zend_ast.c | 233 zval op1, op2; in zend_ast_evaluate() local 241 zval_dtor(&op1); in zend_ast_evaluate() 246 zval_dtor(&op1); in zend_ast_evaluate() 255 zval_dtor(&op1); in zend_ast_evaluate() 262 zval_dtor(&op1); in zend_ast_evaluate() 272 zval_dtor(&op1); in zend_ast_evaluate() 314 zval_dtor(&op1); in zend_ast_evaluate() 332 zval_dtor(&op1); in zend_ast_evaluate() 341 *result = op1; in zend_ast_evaluate() 356 zval_dtor(&op1); in zend_ast_evaluate() [all …]
|
H A D | zend_ast.h | 261 …_always_inline zend_ast *zend_ast_create_binary_op(uint32_t opcode, zend_ast *op0, zend_ast *op1) { in zend_ast_create_binary_op() argument 262 return zend_ast_create_ex(ZEND_AST_BINARY_OP, opcode, op0, op1); in zend_ast_create_binary_op() 264 …_always_inline zend_ast *zend_ast_create_assign_op(uint32_t opcode, zend_ast *op0, zend_ast *op1) { in zend_ast_create_assign_op() argument 265 return zend_ast_create_ex(ZEND_AST_ASSIGN_OP, opcode, op0, op1); in zend_ast_create_assign_op()
|
H A D | zend_opcode.c | 537 int array_offset = opline->op1.num; in zend_get_brk_cont_target() 582 opline->op1.opline_num = op_array->try_catch_array[opline->op1.num].finally_op; in pass_two() 583 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op1); in pass_two() 594 opline->op1.opline_num = jmp_target; in pass_two() 596 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op1); in pass_two() 602 zend_check_finally_breakout(op_array, opline - op_array->opcodes, opline->op1.opline_num); in pass_two() 606 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op1); in pass_two() 651 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline->op1); in pass_two() 653 …opline->op1.var = (uint32_t)(zend_intptr_t)ZEND_CALL_VAR_NUM(NULL, op_array->last_var + opline->op… in pass_two()
|
H A D | zend_compile.c | 773 opline->op1.var == op1->u.op.var) { in zend_do_free() 1593 SET_UNUSED(opline->op1); in zend_do_extended_info() 2142 if (op1 == NULL) { in zend_emit_op() 2145 SET_NODE(opline->op1, op1); in zend_emit_op() 2168 if (op1 == NULL) { in zend_emit_op_tmp() 2171 SET_NODE(opline->op1, op1); in zend_emit_op_tmp() 2295 if (op1 == NULL) { in zend_delayed_emit_op() 2298 SET_NODE(tmp_opline.op1, op1); in zend_delayed_emit_op() 6548 && !is_numeric_string(Z_STRVAL_P(op1), Z_STRLEN_P(op1), NULL, NULL, 0)) { in zend_binary_op_produces_numeric_string_error() 6579 fn(result, op1, op2); in zend_try_ct_eval_binary_op() [all …]
|
/PHP-7.1/ext/opcache/Optimizer/ |
H A D | block_pass.c | 162 znode_op op1 = opline->op1; in zend_optimize_block() local 165 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 209 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 422 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 429 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 533 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 562 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 596 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 623 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 761 && op->op1.var == opline->op1.var) in zend_optimize_block() [all …]
|
H A D | pass3.c | 107 znode_op tmp = opline->op1; in zend_optimizer_pass3() 113 COPY_NODE(opline->op1, opline->op2); in zend_optimizer_pass3() 182 ZEND_SET_OP_JMP_ADDR(opline, opline->op1, ZEND_OP1_JMP_ADDR(target)); in zend_optimizer_pass3() 216 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3() 222 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3() 230 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3() 236 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3() 274 SAME_VAR(target->op1, T)) { in zend_optimizer_pass3() 283 SAME_VAR(target->op1, T)) { in zend_optimizer_pass3() 297 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3()
|
H A D | zend_optimizer_internal.h | 30 #define ZEND_OP1(opline) (opline)->op1 31 #define ZEND_OP1_LITERAL(opline) (op_array)->literals[(opline)->op1.constant] 32 #define ZEND_OP1_JMP_ADDR(opline) OP_JMP_ADDR(opline, (opline)->op1) 47 #define SAME_VAR(op1, op2) (op1 ## _type == op2 ## _type && op1.var == op2.var) argument
|
H A D | zend_ssa.c | 179 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var() 184 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var() 192 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var() 195 zv = CRT_CONSTANT(op->op1); in find_adjusted_tmp_var() 207 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var() 273 var1 = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis() 320 zval *zv = CRT_CONSTANT((opline-1)->op1); in place_essa_pis() 415 int var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis() 437 int var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis() 468 var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis() [all …]
|
H A D | compact_literals.c | 150 LITERAL_INFO(opline->op1.constant, LITERAL_VALUE, 1, 0, 1); in zend_optimizer_compact_literals() 156 opline->op1, in zend_optimizer_compact_literals() 164 LITERAL_INFO(opline->op1.constant, LITERAL_CLASS, 1, 1, 2); in zend_optimizer_compact_literals() 170 opline->op1, in zend_optimizer_compact_literals() 177 LITERAL_INFO(opline->op1.constant, LITERAL_CLASS, 1, 1, 2); in zend_optimizer_compact_literals() 180 LITERAL_INFO(opline->op1.constant, LITERAL_CONST, 1, 1, 2); in zend_optimizer_compact_literals() 196 opline->op1, in zend_optimizer_compact_literals() 217 opline->op1.constant, in zend_optimizer_compact_literals() 252 opline->op1, in zend_optimizer_compact_literals() 275 opline->op1, in zend_optimizer_compact_literals() [all …]
|
H A D | dfa_pass.c | 361 return opline->op1_type != IS_CV || opline->op1.var != cv_var; in opline_supports_assign_contraction() 366 return (opline->op1_type != IS_CV || opline->op1.var != cv_var) in opline_supports_assign_contraction() 374 return opline->op1_type != IS_CV || opline->op1.var != cv_var; in opline_supports_assign_contraction() 424 zval *zv = CT_CONSTANT_EX(op_array, opline->op1.constant); in zend_dfa_optimize_op_array() 427 opline->op1.constant = zend_optimizer_add_literal(op_array, &tmp); in zend_dfa_optimize_op_array() 448 zval *zv = CT_CONSTANT_EX(op_array, opline->op1.constant); in zend_dfa_optimize_op_array() 496 src_var, opline->op1.var) in zend_dfa_optimize_op_array() 519 op_array->opcodes[op_2].result.var = opline->op1.var; in zend_dfa_optimize_op_array() 542 opline->result.var = opline->op1.var; in zend_dfa_optimize_op_array() 544 opline->op1.var = opline->op2.var; in zend_dfa_optimize_op_array() [all …]
|
H A D | zend_inference.h | 136 DEFINE_SSA_OP_HAS_RANGE(op1) 137 DEFINE_SSA_OP_MIN_RANGE(op1) in DEFINE_SSA_OP_MIN_RANGE() argument 138 DEFINE_SSA_OP_MAX_RANGE(op1) in DEFINE_SSA_OP_MIN_RANGE() 139 DEFINE_SSA_OP_RANGE_UNDERFLOW(op1) in DEFINE_SSA_OP_MIN_RANGE() 140 DEFINE_SSA_OP_RANGE_OVERFLOW(op1) in DEFINE_SSA_OP_MIN_RANGE() 221 DEFINE_SSA_OP_INFO(op1) 224 DEFINE_SSA_OP_DEF_INFO(op1)
|
H A D | optimize_func_calls.c | 34 Z_TYPE(op_array->literals[(opline)->op1.constant]) == IS_STRING) 136 ZVAL_DUP(&zv, RT_CONSTANT(&func->op_array, ret_opline->op1)); in zend_try_inline_call() 139 opline->op1.constant = zend_optimizer_add_literal(op_array, &zv); in zend_try_inline_call() 193 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in zend_optimize_func_calls() 200 fcall->op1.num = zend_vm_calc_used_stack(fcall->extended_value, call_stack[call].func); in zend_optimize_func_calls()
|
H A D | zend_optimizer.c | 92 opline->op1.var += sizeof(zval); in zend_optimizer_lookup_cv() 180 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const() 191 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const() 196 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const() 219 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const() 568 zval *op1 = CRT_CONSTANT_EX(op_array, opline->op1, rt_constants); in get_class_entry_from_op1() local 569 if (Z_TYPE_P(op1) == IS_STRING) { in get_class_entry_from_op1() 570 zend_string *class_name = Z_STR_P(op1 + 1); in get_class_entry_from_op1() 822 ZEND_PASS_TWO_UNDO_CONSTANT(op_array, opline->op1); in zend_revert_pass_two() 839 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline->op1); in zend_redo_pass_two() [all …]
|
H A D | zend_dfg.c | 54 var_num = EX_VAR_TO_NUM(next->op1.var); in zend_build_dfg() 67 var_num = EX_VAR_TO_NUM(opline->op1.var); in zend_build_dfg() 146 var_num = EX_VAR_TO_NUM(opline->op1.var); in zend_build_dfg()
|
/PHP-7.1/Zend/tests/ |
H A D | bug37046.phpt | 11 echo "op1 $k\n"; 20 op1 0 23 op1 1
|
/PHP-7.1/ext/intl/collator/ |
H A D | collator_sort.c | 53 static int collator_regular_compare_function(zval *result, zval *op1, zval *op2) in collator_regular_compare_function() argument 65 str1_p = collator_convert_object_to_string( op1, &str1 ); in collator_regular_compare_function() 151 static int collator_numeric_compare_function(zval *result, zval *op1, zval *op2) in collator_numeric_compare_function() argument 157 if( Z_TYPE_P(op1) == IS_STRING ) in collator_numeric_compare_function() 159 num1_p = collator_convert_string_to_double( op1, &num1 ); in collator_numeric_compare_function() 160 op1 = num1_p; in collator_numeric_compare_function() 169 ZVAL_LONG(result, numeric_compare_function(op1, op2)); in collator_numeric_compare_function() 183 static int collator_icu_compare_function(zval *result, zval *op1, zval *op2) in collator_icu_compare_function() argument 191 str1_p = collator_make_printable_zval( op1, &str1); in collator_icu_compare_function()
|
H A D | collator_sort.h | 23 typedef int (*collator_compare_func_t)( zval *result, zval *op1, zval *op2 );
|
/PHP-7.1/ext/standard/ |
H A D | php_string.h | 144 PHPAPI int string_natural_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_in… 145 PHPAPI int string_natural_compare_function(zval *result, zval *op1, zval *op2); 146 PHPAPI int string_natural_case_compare_function(zval *result, zval *op1, zval *op2);
|
/PHP-7.1/ext/gmp/ |
H A D | gmp.c | 471 FETCH_GMP_ZVAL(gmpnum_op, op1, temp); in shift_operator_helper() 480 result, op1, op2, op, (gmp_binary_ui_op_t) uop, \ 489 gmp_zval_unary_op(result, op1, op); \ 502 shift_operator_helper(mpz_pow_ui, result, op1, op2); in gmp_do_operation_ex() 509 shift_operator_helper(mpz_mul_2exp, result, op1, op2); in gmp_do_operation_ex() 534 if (result == op1) { in gmp_do_operation() 535 ZVAL_COPY_VALUE(&op1_copy, op1); in gmp_do_operation() 536 op1 = &op1_copy; in gmp_do_operation() 541 if (retval == SUCCESS && op1 == &op1_copy) { in gmp_do_operation() 542 zval_dtor(op1); in gmp_do_operation() [all …]
|