Skip to content

Commit cea0fc0

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: Fix GH-10112: LDAP\Connection::__construct() refers to ldap_create()
2 parents 8afc558 + 018fbd0 commit cea0fc0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/ldap/ldap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static zend_object *ldap_link_create_object(zend_class_entry *class_type) {
120120
}
121121

122122
static zend_function *ldap_link_get_constructor(zend_object *object) {
123-
zend_throw_error(NULL, "Cannot directly construct LDAP\\Connection, use ldap_create() instead");
123+
zend_throw_error(NULL, "Cannot directly construct LDAP\\Connection, use ldap_connect() instead");
124124
return NULL;
125125
}
126126

ext/ldap/tests/ldap_constructor.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ try {
1111
echo "Exception: ", $ex->getMessage(), "\n";
1212
}
1313
--EXPECT--
14-
Exception: Cannot directly construct LDAP\Connection, use ldap_create() instead
14+
Exception: Cannot directly construct LDAP\Connection, use ldap_connect() instead

0 commit comments

Comments
 (0)