2323 * php zend_vm_gen.php
2424 */
2525
26+ #include <stdint.h>
27+
2628ZEND_VM_HELPER (zend_add_helper , ANY , ANY , zval * op_1 , zval * op_2 )
2729{
2830 USE_OPLINE
@@ -8151,7 +8153,7 @@ ZEND_VM_HANDLER(149, ZEND_HANDLE_EXCEPTION, ANY, ANY)
81518153 }
81528154
81538155 uint32_t throw_op_num = throw_op - EX (func )-> op_array .opcodes ;
8154- int i , current_try_catch_offset = -1 ;
8156+ uint32_t current_try_catch_offset = -1 ;
81558157
81568158 if ((throw_op -> opcode == ZEND_FREE || throw_op -> opcode == ZEND_FE_FREE )
81578159 && throw_op -> extended_value & ZEND_FREE_ON_RETURN ) {
@@ -8162,7 +8164,7 @@ ZEND_VM_HANDLER(149, ZEND_HANDLE_EXCEPTION, ANY, ANY)
81628164 const zend_live_range * range = find_live_range (
81638165 & EX (func )-> op_array , throw_op_num , throw_op -> op1 .var );
81648166 /* free op1 of the corresponding RETURN */
8165- for (i = throw_op_num ; i < range -> end ; i ++ ) {
8167+ for (uint32_t i = throw_op_num ; i < range -> end ; i ++ ) {
81668168 if (EX (func )-> op_array .opcodes [i ].opcode == ZEND_FREE
81678169 || EX (func )-> op_array .opcodes [i ].opcode == ZEND_FE_FREE ) {
81688170 /* pass */
@@ -8178,7 +8180,7 @@ ZEND_VM_HANDLER(149, ZEND_HANDLE_EXCEPTION, ANY, ANY)
81788180 }
81798181
81808182 /* Find the innermost try/catch/finally the exception was thrown in */
8181- for (i = 0 ; i < EX (func )-> op_array .last_try_catch ; i ++ ) {
8183+ for (uint32_t i = 0 ; i < EX (func )-> op_array .last_try_catch ; i ++ ) {
81828184 zend_try_catch_element * try_catch = & EX (func )-> op_array .try_catch_array [i ];
81838185 if (try_catch -> try_op > throw_op_num ) {
81848186 /* further blocks will not be relevant... */
0 commit comments