Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
  Fix GH-10112: LDAP\Connection::__construct() refers to ldap_create()
This commit is contained in:
Christoph M. Becker 2022-12-16 14:37:17 +01:00
commit 018fbd0a68
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6
3 changed files with 5 additions and 2 deletions

3
NEWS
View file

@ -2,6 +2,9 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? ????, PHP 8.2.2
- LDAP:
. Fixed bug GH-10112 (LDAP\Connection::__construct() refers to ldap_create()).
(cmb)
05 Jan 2023, PHP 8.2.1

View file

@ -121,7 +121,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