From b43378d830872acc6c8515e2815c9f98c7787e62 Mon Sep 17 00:00:00 2001 From: Ryan Carsten Schmidt Date: Thu, 13 Jun 2024 04:51:45 -0500 Subject: [PATCH] Fix incompatible function pointer types Closes #14549 --- NEWS | 2 ++ build/php.m4 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index f5069b189d0..9aaa4db7f27 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 03716cf7f9d..32487e4b389 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]) ],[