ldap_add errors
| From: | Jeff Loiselle | Date: | Thu, 15 Sep 2005 01:36:12 +0000 |
| Subject: | ldap_add errors | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-222451@lists.php.net to get a copy of this message | ||
Hello,
According to the PHP documentation for the ldap library, ldap_add() returns a boolean value. However, if there is an error, it immediately throws a Warning to the browser with display_errors on. I would like to do this:
$result = ldap_add($ldap, $dn, $array)
if (!$result) {
trigger_error('some message');
}
I could suppress it with @, but this will never give result a value.
Can someone please shed some light on this for me.
Thanks!