Commit 3927630e62e for php.net
commit 3927630e62e5344f07066f9a7d8c8b307adb11d0
Author: Peter Kokot <peterkokot@gmail.com>
Date: Sun Mar 15 12:57:20 2026 +0100
Remove unused config.h inclusion in SAPIs (#21377)
Current PHP SAPIs aren't built outside of php-src and neither is
anywhere described how such configuration header is supposed to be used.
diff --git a/sapi/cli/php_cli_process_title.c b/sapi/cli/php_cli_process_title.c
index fe36c9a2fdb..e6740576f6a 100644
--- a/sapi/cli/php_cli_process_title.c
+++ b/sapi/cli/php_cli_process_title.c
@@ -14,10 +14,6 @@
+----------------------------------------------------------------------+
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include "php.h"
#include "php_cli_process_title.h"
#include "ps_title.h"
diff --git a/sapi/phpdbg/phpdbg_io.c b/sapi/phpdbg/phpdbg_io.c
index 261a67cd392..742455b73f1 100644
--- a/sapi/phpdbg/phpdbg_io.c
+++ b/sapi/phpdbg/phpdbg_io.c
@@ -14,10 +14,6 @@
+----------------------------------------------------------------------+
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include "phpdbg_io.h"
ZEND_EXTERN_MODULE_GLOBALS(phpdbg)