Commit 11eab53d434 for php.net
commit 11eab53d434c6afa4e7b3f478369225ea69af230
Author: Gina Peter Banyard <girgias@php.net>
Date: Fri Jun 26 10:31:26 2026 +0100
ext/com: drop useless header includes
diff --git a/ext/com_dotnet/com_com.c b/ext/com_dotnet/com_com.c
index a0c8a955e0c..63fc8f6563b 100644
--- a/ext/com_dotnet/com_com.c
+++ b/ext/com_dotnet/com_com.c
@@ -17,8 +17,6 @@
#endif
#include "php.h"
-#include "php_ini.h"
-#include "ext/standard/info.h"
#include "php_com_dotnet.h"
#include "php_com_dotnet_internal.h"
#include "Zend/zend_exceptions.h"
diff --git a/ext/com_dotnet/com_dotnet.c b/ext/com_dotnet/com_dotnet.c
index 78f420ff559..d96aa0f1b12 100644
--- a/ext/com_dotnet/com_dotnet.c
+++ b/ext/com_dotnet/com_dotnet.c
@@ -16,11 +16,9 @@
#include <config.h>
#endif
-#include "php.h"
+# include "php.h"
#ifdef HAVE_MSCOREE_H
-# include "php_ini.h"
-# include "ext/standard/info.h"
# include "php_com_dotnet.h"
# include "php_com_dotnet_internal.h"
# include "Zend/zend_exceptions.h"
diff --git a/ext/com_dotnet/com_handlers.c b/ext/com_dotnet/com_handlers.c
index 81c42da3497..af0b1a24b06 100644
--- a/ext/com_dotnet/com_handlers.c
+++ b/ext/com_dotnet/com_handlers.c
@@ -17,8 +17,6 @@
#endif
#include "php.h"
-#include "php_ini.h"
-#include "ext/standard/info.h"
#include "php_com_dotnet.h"
#include "php_com_dotnet_internal.h"
#include "Zend/zend_exceptions.h"
diff --git a/ext/com_dotnet/com_iterator.c b/ext/com_dotnet/com_iterator.c
index 796a31ac9be..ee8f65c12c1 100644
--- a/ext/com_dotnet/com_iterator.c
+++ b/ext/com_dotnet/com_iterator.c
@@ -17,8 +17,6 @@
#endif
#include "php.h"
-#include "php_ini.h"
-#include "ext/standard/info.h"
#include "php_com_dotnet.h"
#include "php_com_dotnet_internal.h"
#include "Zend/zend_exceptions.h"
diff --git a/ext/com_dotnet/com_misc.c b/ext/com_dotnet/com_misc.c
index 47c670cd358..2cca9f11ca3 100644
--- a/ext/com_dotnet/com_misc.c
+++ b/ext/com_dotnet/com_misc.c
@@ -17,8 +17,6 @@
#endif
#include "php.h"
-#include "php_ini.h"
-#include "ext/standard/info.h"
#include "php_com_dotnet.h"
#include "php_com_dotnet_internal.h"
#include "Zend/zend_exceptions.h"
diff --git a/ext/com_dotnet/com_olechar.c b/ext/com_dotnet/com_olechar.c
index 6270db6580f..c4c7ca7a6a7 100644
--- a/ext/com_dotnet/com_olechar.c
+++ b/ext/com_dotnet/com_olechar.c
@@ -18,8 +18,6 @@
#endif
#include "php.h"
-#include "php_ini.h"
-#include "ext/standard/info.h"
#include "php_com_dotnet.h"
#include "php_com_dotnet_internal.h"
diff --git a/ext/com_dotnet/com_persist.c b/ext/com_dotnet/com_persist.c
index 5559567cbab..916a8b05f13 100644
--- a/ext/com_dotnet/com_persist.c
+++ b/ext/com_dotnet/com_persist.c
@@ -25,8 +25,6 @@
#endif
#include "php.h"
-#include "php_ini.h"
-#include "ext/standard/info.h"
#include "php_com_dotnet.h"
#include "php_com_dotnet_internal.h"
#include "Zend/zend_exceptions.h"
diff --git a/ext/com_dotnet/com_saproxy.c b/ext/com_dotnet/com_saproxy.c
index 0317c329589..7cfdef4885f 100644
--- a/ext/com_dotnet/com_saproxy.c
+++ b/ext/com_dotnet/com_saproxy.c
@@ -24,8 +24,6 @@
#endif
#include "php.h"
-#include "php_ini.h"
-#include "ext/standard/info.h"
#include "php_com_dotnet.h"
#include "php_com_dotnet_internal.h"
#include "Zend/zend_exceptions.h"
diff --git a/ext/com_dotnet/com_typeinfo.c b/ext/com_dotnet/com_typeinfo.c
index ca20ed004d8..f80075c050a 100644
--- a/ext/com_dotnet/com_typeinfo.c
+++ b/ext/com_dotnet/com_typeinfo.c
@@ -18,8 +18,6 @@
#endif
#include "php.h"
-#include "php_ini.h"
-#include "ext/standard/info.h"
#include "php_com_dotnet.h"
#include "php_com_dotnet_internal.h"
diff --git a/ext/com_dotnet/com_variant.c b/ext/com_dotnet/com_variant.c
index da3ccc64ffb..82f17d12d9b 100644
--- a/ext/com_dotnet/com_variant.c
+++ b/ext/com_dotnet/com_variant.c
@@ -17,8 +17,6 @@
#endif
#include "php.h"
-#include "php_ini.h"
-#include "ext/standard/info.h"
#include "php_com_dotnet.h"
#include "php_com_dotnet_internal.h"
diff --git a/ext/com_dotnet/com_wrapper.c b/ext/com_dotnet/com_wrapper.c
index c2297d18e58..175a2de3307 100644
--- a/ext/com_dotnet/com_wrapper.c
+++ b/ext/com_dotnet/com_wrapper.c
@@ -20,8 +20,6 @@
#endif
#include "php.h"
-#include "php_ini.h"
-#include "ext/standard/info.h"
#include "php_com_dotnet.h"
#include "php_com_dotnet_internal.h"
diff --git a/ext/com_dotnet/php_com_dotnet_internal.h b/ext/com_dotnet/php_com_dotnet_internal.h
index 5aef37659c4..541074a3a8b 100644
--- a/ext/com_dotnet/php_com_dotnet_internal.h
+++ b/ext/com_dotnet/php_com_dotnet_internal.h
@@ -115,9 +115,11 @@ PHP_COM_DOTNET_API zend_result php_com_zval_from_variant(zval *z, VARIANT *v, in
PHP_COM_DOTNET_API zend_result php_com_copy_variant(VARIANT *dst, VARIANT *src);
/* com_dotnet.c */
+#ifdef HAVE_MSCOREE_H
PHP_METHOD(dotnet, __construct);
void php_com_dotnet_rshutdown(void);
void php_com_dotnet_mshutdown(void);
+#endif
/* com_misc.c */
void php_com_throw_exception(HRESULT code, char *message);