Skip to content

Commit f666965

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix GH-12019: ext/gd/config.m4: don't forget GDLIB_CFLAGS in feature tests
2 parents 8391530 + 0079932 commit f666965

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ PHP NEWS
1616
. Fixed GH-11086 (FPM: config test runs twice in daemonised mode).
1717
(Jakub Zelenka)
1818

19+
- GD:
20+
. Fixed bug GH-12019 (add GDLIB_CFLAGS in feature tests). (Michael Orlitzky)
21+
1922
- Gettext:
2023
. Fixed sigabrt raised with dcgettext/dcngettext calls with gettext 0.22.5
2124
with category set to LC_ALL. (David Carlier)

ext/gd/config.m4

+3
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ dnl or run test insufficient.
150150
AC_DEFUN([PHP_GD_CHECK_FORMAT],[
151151
old_LIBS="${LIBS}"
152152
LIBS="${LIBS} ${GD_SHARED_LIBADD}"
153+
old_CFLAGS="${CFLAGS}"
154+
CFLAGS="${CFLAGS} ${GDLIB_CFLAGS}"
153155
AC_MSG_CHECKING([for working gdImageCreateFrom$1 in libgd])
154156
AC_LANG_PUSH([C])
155157
AC_RUN_IFELSE([AC_LANG_SOURCE([
@@ -180,6 +182,7 @@ int main(int argc, char** argv) {
180182
AC_MSG_RESULT([no])
181183
])
182184
AC_LANG_POP([C])
185+
CFLAGS="${old_CFLAGS}"
183186
LIBS="${old_LIBS}"
184187
])
185188

0 commit comments

Comments
 (0)