From 20c2c39f3c5c5828292beb8fae335e134f0a9355 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Fri, 7 Mar 2003 14:03:53 +0000 Subject: Fixed bug #22585 (Do not terminate the script on minor errors). --- ext/ldap/ldap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/ldap/ldap.c') 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; } -- cgit v1.2.1