summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-03-07 14:03:53 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-03-07 14:03:53 +0000
commit20c2c39f3c5c5828292beb8fae335e134f0a9355 (patch)
tree0270fe2e09bb19a7b8a0b8015a5e6d2867b4eaa6
parent8c3e16bf0955dcc9611c51f4a4cc667efc101430 (diff)
downloadphp-git-20c2c39f3c5c5828292beb8fae335e134f0a9355.tar.gz
Fixed bug #22585 (Do not terminate the script on minor errors).
-rw-r--r--ext/ldap/ldap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c
index 2f5c49f896..f070cdba59 100644
--- a/ext/ldap/ldap.c
+++ b/ext/ldap/ldap.c
@@ -1292,7 +1292,7 @@ static void php_ldap_do_modify(INTERNAL_FUNCTION_PARAMETERS, int oper)
if (zend_hash_get_current_key(Z_ARRVAL_PP(entry), &attribute, &index, 0) == HASH_KEY_IS_STRING) {
ldap_mods[i]->mod_type = estrdup(attribute);
} else {
- php_error_docref(NULL TSRMLS_CC, E_ERROR, "Unknown attribute in the data");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown attribute in the data");
/* Free allocated memory */
while (i >= 0) {
efree(ldap_mods[i--]);
@@ -2098,7 +2098,7 @@ static void php_ldap_do_translate(INTERNAL_FUNCTION_PARAMETERS, int way)
RETVAL_STRINGL(ldap_buf, ldap_len, 1);
free(ldap_buf);
} else {
- php_error_docref(NULL TSRMLS_CC, E_ERROR, "Conversion from iso-8859-1 to t61 failed: %s", ldap_err2string(result));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Conversion from iso-8859-1 to t61 failed: %s", ldap_err2string(result));
RETVAL_FALSE;
}