]> granicus.if.org Git - php/commitdiff
use php_error_docref for libxml2 errors
authorChristian Stocker <chregu@php.net>
Sun, 25 Jul 2004 10:37:27 +0000 (10:37 +0000)
committerChristian Stocker <chregu@php.net>
Sun, 25 Jul 2004 10:37:27 +0000 (10:37 +0000)
ext/libxml/libxml.c

index 4e41adb10e8f8d1cf89f9ba32172e3af125f0525..d1d4be6fe16b3252235a77718ff1d777a33f7a4f 100644 (file)
@@ -355,7 +355,7 @@ static void php_libxml_internal_error_handler(int error_type, void *ctx, const c
                                php_libxml_ctx_error_level(E_NOTICE, ctx, LIBXML(error_buffer).c TSRMLS_CC);
                                break;
                        default:
-                               php_error(E_WARNING, "%s", LIBXML(error_buffer).c);
+                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", LIBXML(error_buffer).c);
                }
                smart_str_free(&LIBXML(error_buffer));
        }