File tree 2 files changed +11
-5
lines changed 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ PHP NEWS
10
10
. Fixed bug GH-11222 (foreach by-ref may jump over keys during a rehash).
11
11
(Bob)
12
12
13
+ - CLI:
14
+ . Fixed bug GH-11246 (cli/get_set_process_title fails
15
+ on MacOS). (James Lucas)
16
+
13
17
- Exif:
14
18
. Fixed bug GH-10834 (exif_read_data() cannot read smaller stream wrapper
15
19
chunk sizes). (nielsdos)
Original file line number Diff line number Diff line change @@ -167,19 +167,21 @@ char** save_ps_args(int argc, char** argv)
167
167
end_of_area = argv [i ] + strlen (argv [i ]);
168
168
}
169
169
170
+ if (non_contiguous_area != 0 )
171
+ goto clobber_error ;
172
+
170
173
/*
171
174
* check for contiguous environ strings following argv
172
175
*/
173
176
for (i = 0 ; (non_contiguous_area == 0 ) && (environ [i ] != NULL ); i ++ )
174
177
{
175
- if (end_of_area + 1 != environ [i ])
178
+ if (end_of_area + 1 != environ [i ]) {
176
179
non_contiguous_area = 1 ;
177
- end_of_area = environ [i ] + strlen (environ [i ]);
180
+ } else {
181
+ end_of_area = environ [i ] + strlen (environ [i ]);
182
+ }
178
183
}
179
184
180
- if (non_contiguous_area != 0 )
181
- goto clobber_error ;
182
-
183
185
ps_buffer = argv [0 ];
184
186
ps_buffer_size = end_of_area - argv [0 ];
185
187
You can’t perform that action at this time.
0 commit comments