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
@@ -8164,7 +8166,7 @@ ZEND_VM_HANDLER(149, ZEND_HANDLE_EXCEPTION, ANY, ANY)
81648166 }
81658167
81668168 uint32_t throw_op_num = throw_op - EX (func )-> op_array .opcodes ;
8167- int i , current_try_catch_offset = -1 ;
8169+ uint32_t current_try_catch_offset = -1 ;
81688170
81698171 if ((throw_op -> opcode == ZEND_FREE || throw_op -> opcode == ZEND_FE_FREE )
81708172 && throw_op -> extended_value & ZEND_FREE_ON_RETURN ) {
@@ -8175,7 +8177,7 @@ ZEND_VM_HANDLER(149, ZEND_HANDLE_EXCEPTION, ANY, ANY)
81758177 const zend_live_range * range = find_live_range (
81768178 & EX (func )-> op_array , throw_op_num , throw_op -> op1 .var );
81778179 /* free op1 of the corresponding RETURN */
8178- for (i = throw_op_num ; i < range -> end ; i ++ ) {
8180+ for (uint32_t i = throw_op_num ; i < range -> end ; i ++ ) {
81798181 if (EX (func )-> op_array .opcodes [i ].opcode == ZEND_FREE
81808182 || EX (func )-> op_array .opcodes [i ].opcode == ZEND_FE_FREE ) {
81818183 /* pass */
@@ -8191,7 +8193,7 @@ ZEND_VM_HANDLER(149, ZEND_HANDLE_EXCEPTION, ANY, ANY)
81918193 }
81928194
81938195 /* Find the innermost try/catch/finally the exception was thrown in */
8194- for (i = 0 ; i < EX (func )-> op_array .last_try_catch ; i ++ ) {
8196+ for (uint32_t i = 0 ; i < EX (func )-> op_array .last_try_catch ; i ++ ) {
81958197 zend_try_catch_element * try_catch = & EX (func )-> op_array .try_catch_array [i ];
81968198 if (try_catch -> try_op > throw_op_num ) {
81978199 /* further blocks will not be relevant... */
0 commit comments