[php-src] master: ext/ldap: Remove unused HAVE_LDAP_EXTENDED_OPERATION (#22455)

Peter Kokot via GitHub <[email protected]>
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Peter Kokot (petk)
Committer: GitHub (web-flow)
Pusher: petk
Date: 2026-06-26T17:44:29+02:00

Commit: https://github.com/php/php-src/commit/884070537fb8dbff42677721898173901fe176ee
Raw diff: https://github.com/php/php-src/commit/884070537fb8dbff42677721898173901fe176ee.diff

ext/ldap: Remove unused HAVE_LDAP_EXTENDED_OPERATION (#22455)

Current code assumes having ldap_extended_operation_s() also means
having ldap_extended_operation().

Changed paths:
  M  ext/ldap/config.m4
  M  ext/ldap/config.w32


Diff:

diff --git a/ext/ldap/config.m4 b/ext/ldap/config.m4
index 14174bd5dc26..65a3d3b90eed 100644
--- a/ext/ldap/config.m4
+++ b/ext/ldap/config.m4
@@ -134,7 +134,6 @@ if test "$PHP_LDAP" != "no"; then
   dnl nor ldap_start_tls_s()
   AC_CHECK_FUNCS(m4_normalize([
     ldap_control_find
-    ldap_extended_operation
     ldap_extended_operation_s
     ldap_parse_extended_result
     ldap_parse_reference
diff --git a/ext/ldap/config.w32 b/ext/ldap/config.w32
index c6a7049aa1c6..1fa1fe3f777c 100644
--- a/ext/ldap/config.w32
+++ b/ext/ldap/config.w32
@@ -23,7 +23,6 @@ if (PHP_LDAP != "no") {
 		AC_DEFINE('HAVE_LDAP_PASSWD', 1);
 		AC_DEFINE('HAVE_LDAP_WHOAMI_S', 1);
 		AC_DEFINE('HAVE_LDAP_REFRESH_S', 1);
-		AC_DEFINE('HAVE_LDAP_EXTENDED_OPERATION', 1);
 		AC_DEFINE('HAVE_3ARG_SETREBINDPROC', 1);
 	} else {
 		WARNING("ldap not enabled; libraries and headers not found");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.