Skip to content

Directly creating LDAP\Connection object refers to nonexistent ldap_create function #10112

Closed

Description

@zerocrates

Description

The following code:

<?php
new LDAP\Connection;

Resulted in this output:

Error: Cannot directly construct LDAP\Connection, use ldap_create() instead

But I expected this output instead:

Error: Cannot directly construct LDAP\Connection, use ldap_connect() instead

PHP Version

PHP 8.2.0

Operating System

No response

Activity

  1. damianwadley commented on Dec 16, 2022

    @damianwadley
    Member

    Looks like a simple mistake introduced with 8.1.0 when the extension was converted to use objects.
    cd40fc3

  2. added a commit that references this issue on Dec 16, 2022
    638c38b
  3. added 2 commits that reference this issue on Dec 16, 2022
    018fbd0
    cea0fc0
  4. added a commit that references this issue on Mar 29, 2024
    b8ac207
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions