diff --git a/NEWS b/NEWS index f5069b189d09c..9aaa4db7f274f 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,8 @@ PHP NEWS values during Generator->throw()). (Bob) . Fixed bug GH-14456 (Attempting to initialize class with private constructor calls destructor). (Girgias) + . Fixed bug GH-14549 (Incompatible function pointer type for fclose). + (Ryan Carsten Schmidt) - BCMatch: . Fixed bug (bcpowmod() with mod = -1 returns 1 when it must be 0). (Girgias) diff --git a/build/php.m4 b/build/php.m4 index 03716cf7f9d43..32487e4b389ec 100644 --- a/build/php.m4 +++ b/build/php.m4 @@ -1303,7 +1303,7 @@ dnl See if we have broken header files like SunOS has. dnl AC_DEFUN([PHP_MISSING_FCLOSE_DECL],[ AC_MSG_CHECKING([for fclose declaration]) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[int (*func)(void) = fclose]])],[ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[int (*func)(FILE *) = fclose]])],[ AC_DEFINE(MISSING_FCLOSE_DECL,0,[ ]) AC_MSG_RESULT([ok]) ],[