[DOC-CVS] [doc-en] master: ext/ldap: Sync ldap_exop() signature to match stubs (#5623)

[email protected] (Louis-Arnaud via GitHub) Fri, 26 Jun 2026 07:59:20 +0000
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Louis-Arnaud (lacatoire)
Committer: GitHub (web-flow)
Pusher: jordikroon
Date: 2026-06-26T09:59:17+02:00

Commit: https://github.com/php/doc-en/commit/6400027855e1ef2a1a95f62db200fc1ae35a7b2e
Raw diff: https://github.com/php/doc-en/commit/6400027855e1ef2a1a95f62db200fc1ae35a7b2e.diff

ext/ldap: Sync ldap_exop() signature to match stubs (#5623)

The return type is documented as mixed but ldap_exop() returns
LDAP\Result|bool, and the request_data and controls parameters are
nullable (?string and ?array).

Changed paths:
  M  reference/ldap/functions/ldap-exop.xml


Diff:

diff --git a/reference/ldap/functions/ldap-exop.xml b/reference/ldap/functions/ldap-exop.xml
index 0b76e094b9ac..d510796179d4 100644
--- a/reference/ldap/functions/ldap-exop.xml
+++ b/reference/ldap/functions/ldap-exop.xml
@@ -9,11 +9,11 @@
  <refsect1 role="description">
   &reftitle.description;
   <methodsynopsis>
-   <type>mixed</type><methodname>ldap_exop</methodname>
+   <type class="union"><type>LDAP\Result</type><type>bool</type></type><methodname>ldap_exop</methodname>
    <methodparam><type>LDAP\Connection</type><parameter>ldap</parameter></methodparam>
    <methodparam><type>string</type><parameter>request_oid</parameter></methodparam>
-   <methodparam choice="opt"><type>string</type><parameter>request_data</parameter><initializer>&null;</initializer></methodparam>
-   <methodparam choice="opt"><type>array</type><parameter>controls</parameter><initializer>&null;</initializer></methodparam>
+   <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>request_data</parameter><initializer>&null;</initializer></methodparam>
+   <methodparam choice="opt"><type class="union"><type>array</type><type>null</type></type><parameter>controls</parameter><initializer>&null;</initializer></methodparam>
    <methodparam choice="opt"><type>string</type><parameter role="reference">response_data</parameter></methodparam>
    <methodparam choice="opt"><type>string</type><parameter role="reference">response_oid</parameter></methodparam>
   </methodsynopsis>