Skip to content

Commit 5c0b549

Browse files
committed
Fix test
1 parent abead96 commit 5c0b549

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ext/ldap/tests/ldap_set_rebind_proc_trampoline.phpt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,18 @@ var_dump(ldap_set_rebind_proc($link, null));
4646
var_dump(ldap_set_rebind_proc($link, $callbackWrongType));
4747

4848
var_dump(ldap_unbind($link));
49-
var_dump(ldap_set_rebind_proc($link, $callback));
49+
try {
50+
var_dump(ldap_set_rebind_proc($link, $callback));
51+
} catch (Throwable $e) {
52+
echo $e::class, ': ', $e->getMessage(), PHP_EOL;
53+
}
5054

5155
?>
5256
--EXPECT--
5357
bool(true)
5458
bool(true)
59+
bool(true)
60+
bool(true)
61+
bool(true)
62+
bool(true)
63+
Error: LDAP connection has already been closed

0 commit comments

Comments
 (0)