Skip to content

Commit b43378d

Browse files
ryandesignpetk
authored andcommitted
Fix incompatible function pointer types
Closes #14549
1 parent c47d357 commit b43378d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ PHP NEWS
1010
values during Generator->throw()). (Bob)
1111
. Fixed bug GH-14456 (Attempting to initialize class with private constructor
1212
calls destructor). (Girgias)
13+
. Fixed bug GH-14549 (Incompatible function pointer type for fclose).
14+
(Ryan Carsten Schmidt)
1315

1416
- BCMatch:
1517
. Fixed bug (bcpowmod() with mod = -1 returns 1 when it must be 0). (Girgias)

build/php.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ dnl See if we have broken header files like SunOS has.
13031303
dnl
13041304
AC_DEFUN([PHP_MISSING_FCLOSE_DECL],[
13051305
AC_MSG_CHECKING([for fclose declaration])
1306-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[int (*func)(void) = fclose]])],[
1306+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[int (*func)(FILE *) = fclose]])],[
13071307
AC_DEFINE(MISSING_FCLOSE_DECL,0,[ ])
13081308
AC_MSG_RESULT([ok])
13091309
],[

0 commit comments

Comments
 (0)