mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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:
commit
018fbd0a68
3 changed files with 5 additions and 2 deletions
3
NEWS
3
NEWS
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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…
Add table
Add a link
Reference in a new issue