ldap_bindで無効な資格情報があり、@ldap_bindやerror_reportingを0に設定しないと、画面上でphp警告を避けることができますか?php ldap bind warning
私が試した:
try {
if(!ldap_bind($ds, $binddn, $password)) {
throw new Exception('Invalid credentials');
}
} catch (Exception $e) {
var_dump($e->getMessage());
}
しかし、それは動作しません。 PHPの警告はまだ画面に表示されます。
誰も解決を知っていますか?