File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ PHP NEWS
1313 constant expression contexts). (ilutov)
1414 . Fixed bug GH-17214 (Relax final+private warning for trait methods with
1515 inherited final). (ilutov)
16+ . Fixed NULL arithmetic during system program execution on Windows. (cmb,
17+ nielsdos)
1618
1719- DOM:
1820 . Fixed bug GH-17397 (Assertion failure ext/dom/php_dom.c). (nielsdos)
Original file line number Diff line number Diff line change @@ -374,14 +374,16 @@ static process_pair *process_get(FILE *stream)
374374 process_pair * ptr ;
375375 process_pair * newptr ;
376376
377- for (ptr = TWG (process ); ptr < (TWG (process ) + TWG (process_size )); ptr ++ ) {
378- if (ptr -> stream == stream ) {
379- break ;
377+ if (TWG (process ) != NULL ) {
378+ for (ptr = TWG (process ); ptr < (TWG (process ) + TWG (process_size )); ptr ++ ) {
379+ if (ptr -> stream == stream ) {
380+ break ;
381+ }
380382 }
381- }
382383
383- if (ptr < (TWG (process ) + TWG (process_size ))) {
384- return ptr ;
384+ if (ptr < (TWG (process ) + TWG (process_size ))) {
385+ return ptr ;
386+ }
385387 }
386388
387389 newptr = (process_pair * )realloc ((void * )TWG (process ), (TWG (process_size )+ 1 )* sizeof (process_pair ));
You can’t perform that action at this time.
0 commit comments