Skip to content

Commit fcbfd5a

Browse files
committed
Include relevant system headers before defining fallbacks
Otherwise we may define the fallbacks, and later inclusion of the system headers may attempt to redefine those. Fixes GH-17112. Closes GH-17129.
1 parent e0b79cd commit fcbfd5a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

NEWS

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ PHP NEWS
3232
- FPM:
3333
. Fixed bug GH-13437 (FPM: ERROR: scoreboard: failed to lock (already
3434
locked)). (Jakub Zelenka)
35+
. Fixed bug GH-17112 (Macro redefinitions). (cmb, nielsdos)
3536

3637
- GD:
3738
. Fixed bug GH-16255 (Unexpected nan value in ext/gd/libgd/gd_filter.c).
@@ -44,6 +45,9 @@ PHP NEWS
4445
- Iconv:
4546
. Fixed bug GH-17047 (UAF on iconv filter failure). (nielsdos)
4647

48+
- MBString:
49+
. Fixed bug GH-17112 (Macro redefinitions). (nielsdos, cmb)
50+
4751
- Opcache:
4852
. opcache_get_configuration() properly reports jit_prof_threshold. (cmb)
4953

sapi/fpm/fpm/fpm_config.h

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
#include <php_config.h>
44

5+
#ifdef HAVE_ARPA_INET_H
6+
# include <arpa/inet.h>
7+
#endif
8+
#ifdef HAVE_NETINET_IN_H
9+
# include <netinet/in.h>
10+
#endif
11+
#ifdef HAVE_SYS_TIME_H
12+
# include <sys/time.h>
13+
#endif
14+
515
/* Solaris does not have it */
616
#ifndef INADDR_NONE
717
# define INADDR_NONE (-1)

0 commit comments

Comments
 (0)