File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4064,8 +4064,8 @@ static void php_hebrev(INTERNAL_FUNCTION_PARAMETERS, int convert_newlines)
4064
4064
block_end ++ ;
4065
4065
block_length ++ ;
4066
4066
}
4067
- for (i = block_start ; i <= block_end ; i ++ ) {
4068
- * target = str [i ];
4067
+ for (i = block_start + 1 ; i <= block_end + 1 ; i ++ ) {
4068
+ * target = str [i - 1 ];
4069
4069
switch (* target ) {
4070
4070
case '(' :
4071
4071
* target = ')' ;
@@ -4113,8 +4113,8 @@ static void php_hebrev(INTERNAL_FUNCTION_PARAMETERS, int convert_newlines)
4113
4113
tmp -- ;
4114
4114
block_end -- ;
4115
4115
}
4116
- for (i = block_end ; i >= block_start ; i -- ) {
4117
- * target = str [i ];
4116
+ for (i = block_end + 1 ; i >= block_start + 1 ; i -- ) {
4117
+ * target = str [i - 1 ];
4118
4118
target -- ;
4119
4119
}
4120
4120
block_type = _HEB_BLOCK_TYPE_HEB ;
You can’t perform that action at this time.
0 commit comments