]> granicus.if.org Git - php/commitdiff
MFH
authorIlia Alshanetsky <iliaa@php.net>
Fri, 7 Mar 2003 14:08:06 +0000 (14:08 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 7 Mar 2003 14:08:06 +0000 (14:08 +0000)
ext/ldap/ldap.c

index 724733112af36c4e6130562d52ce277a117bebf4..39f2fb10ae628cfcadd316803906dae44001a2db 100644 (file)
@@ -1303,7 +1303,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(E_ERROR, "%s(): Unknown attribute in the data", get_active_function_name(TSRMLS_C));
+                       php_error(E_WARNING, "%s(): Unknown attribute in the data", get_active_function_name(TSRMLS_C));
                        /* Free allocated memory */
                        while (i >= 0) {
                                efree(ldap_mods[i--]);
@@ -2119,7 +2119,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(E_ERROR, "%s(): Conversion from iso-8859-1 to t61 failed: %s", get_active_function_name(TSRMLS_C), ldap_err2string(result));
+               php_error(E_WARNING, "%s(): Conversion from iso-8859-1 to t61 failed: %s", get_active_function_name(TSRMLS_C), ldap_err2string(result));
                RETVAL_FALSE;
        }