]> granicus.if.org Git - php/commitdiff
oops, that doesn't belong to this patch
authorStanislav Malyshev <stas@php.net>
Tue, 13 Oct 2009 20:54:28 +0000 (20:54 +0000)
committerStanislav Malyshev <stas@php.net>
Tue, 13 Oct 2009 20:54:28 +0000 (20:54 +0000)
main/main.c

index 283894a4682adea045b935a9543f6686ed7bf0eb..4236890b332e9d9c8e23055cf23aa082985658e6 100644 (file)
@@ -649,10 +649,6 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c
        char *message;
        int is_function = 0;
 
-       if(!ZEND_CAN_REPORT(type)) {
-               return;
-       }
-
        /* get error text into buffer and escape for html if necessary */
        buffer_len = vspprintf(&buffer, 0, format, args);
        if (PG(html_errors)) {
@@ -840,9 +836,6 @@ PHPAPI void php_error_docref2(const char *docref TSRMLS_DC, const char *param1,
        char *params;
        va_list args;
 
-       if(!ZEND_CAN_REPORT(type)) {
-               return;
-       }
        spprintf(&params, 0, "%s,%s", param1, param2);
        va_start(args, format);
        php_verror(docref, params ? params : "...", type, format, args TSRMLS_CC);