File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ PHP NEWS
2
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
3
?? ??? ????, PHP 8.2.8
4
4
5
+ - CLI:
6
+ . Fixed bug GH-11246 (cli/get_set_process_title fails on MacOS).
7
+ (James Lucas)
8
+
5
9
- Core:
6
10
. Fixed build for the riscv64 architecture/GCC 12. (Daniil Gentili)
7
11
Original file line number Diff line number Diff line change @@ -169,19 +169,18 @@ char** save_ps_args(int argc, char** argv)
169
169
end_of_area = argv [i ] + strlen (argv [i ]);
170
170
}
171
171
172
+ if (!is_contiguous_area ) {
173
+ goto clobber_error ;
174
+ }
175
+
172
176
/*
173
177
* check for contiguous environ strings following argv
174
178
*/
175
- for (i = 0 ; is_contiguous_area && ( environ [i ] != NULL ) ; i ++ )
179
+ for (i = 0 ; environ [i ] != NULL ; i ++ )
176
180
{
177
- if (end_of_area + 1 ! = environ [i ]) {
178
- is_contiguous_area = false ;
181
+ if (end_of_area + 1 = = environ [i ]) {
182
+ end_of_area = environ [ i ] + strlen ( environ [ i ]) ;
179
183
}
180
- end_of_area = environ [i ] + strlen (environ [i ]);
181
- }
182
-
183
- if (!is_contiguous_area ) {
184
- goto clobber_error ;
185
184
}
186
185
187
186
ps_buffer = argv [0 ];
You can’t perform that action at this time.
0 commit comments