mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
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:
parent
7a983e281c
commit
b8ac2071b8
4
NEWS
4
NEWS
@ -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)
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user