Fix GH-10112: LDAP\Connection::__construct() refers to ldap_create()

There is no `ldap_create()`, but rather `ldap_connect()`.

Closes GH-10115.
This commit is contained in:
Christoph M. Becker 2022-12-16 12:16:38 +01:00
parent 7a983e281c
commit b8ac2071b8
No known key found for this signature in database
GPG Key ID: D66C9593118BCCB6
3 changed files with 6 additions and 2 deletions

4
NEWS
View File

@ -5,6 +5,10 @@ PHP NEWS
- Apache:
. Fixed bug GH-9949 (Partial content on incomplete POST request). (cmb)
- LDAP:
. Fixed bug GH-10112 (LDAP\Connection::__construct() refers to ldap_create()).
(cmb)
- TSRM:
. Fixed Windows shmget() wrt. IPC_PRIVATE. (Tyson Andre)

View File

@ -119,7 +119,7 @@ static zend_object *ldap_link_create_object(zend_class_entry *class_type) {
}
static zend_function *ldap_link_get_constructor(zend_object *object) {
zend_throw_error(NULL, "Cannot directly construct LDAP\\Connection, use ldap_create() instead");
zend_throw_error(NULL, "Cannot directly construct LDAP\\Connection, use ldap_connect() instead");
return NULL;
}

View File

@ -11,4 +11,4 @@ try {
echo "Exception: ", $ex->getMessage(), "\n";
}
--EXPECT--
Exception: Cannot directly construct LDAP\Connection, use ldap_create() instead
Exception: Cannot directly construct LDAP\Connection, use ldap_connect() instead