23
23
* php zend_vm_gen.php
24
24
*/
25
25
26
+ #include <stdint.h>
27
+
26
28
ZEND_VM_HELPER (zend_add_helper , ANY , ANY , zval * op_1 , zval * op_2 )
27
29
{
28
30
USE_OPLINE
@@ -8151,7 +8153,7 @@ ZEND_VM_HANDLER(149, ZEND_HANDLE_EXCEPTION, ANY, ANY)
8151
8153
}
8152
8154
8153
8155
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 ;
8155
8157
8156
8158
if ((throw_op -> opcode == ZEND_FREE || throw_op -> opcode == ZEND_FE_FREE )
8157
8159
&& throw_op -> extended_value & ZEND_FREE_ON_RETURN ) {
@@ -8162,7 +8164,7 @@ ZEND_VM_HANDLER(149, ZEND_HANDLE_EXCEPTION, ANY, ANY)
8162
8164
const zend_live_range * range = find_live_range (
8163
8165
& EX (func )-> op_array , throw_op_num , throw_op -> op1 .var );
8164
8166
/* 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 ++ ) {
8166
8168
if (EX (func )-> op_array .opcodes [i ].opcode == ZEND_FREE
8167
8169
|| EX (func )-> op_array .opcodes [i ].opcode == ZEND_FE_FREE ) {
8168
8170
/* pass */
@@ -8178,7 +8180,7 @@ ZEND_VM_HANDLER(149, ZEND_HANDLE_EXCEPTION, ANY, ANY)
8178
8180
}
8179
8181
8180
8182
/* 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 ++ ) {
8182
8184
zend_try_catch_element * try_catch = & EX (func )-> op_array .try_catch_array [i ];
8183
8185
if (try_catch -> try_op > throw_op_num ) {
8184
8186
/* further blocks will not be relevant... */
0 commit comments