dis-bench / src /php /php-src /ext /ldap /tests /ldap_constructor.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
297 Bytes
--TEST--
Attempt to instantiate an LDAP\Connection directly
--EXTENSIONS--
ldap
--FILE--
<?php
try {
new LDAP\Connection();
} catch (Error $ex) {
echo "Exception: ", $ex->getMessage(), "\n";
}
?>
--EXPECT--
Exception: Cannot directly construct LDAP\Connection, use ldap_connect() instead