]> granicus.if.org Git - php/commitdiff
-php_error -> php_error_docref
authorMarcus Boerger <helly@php.net>
Thu, 5 Dec 2002 21:46:08 +0000 (21:46 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 5 Dec 2002 21:46:08 +0000 (21:46 +0000)
main/SAPI.c

index 6ebd98e7ce4ea9e299de1a022a8b3fc55741da30..4a3db9ec702eaf29ca5a00f96b2298a387885f06 100644 (file)
@@ -186,7 +186,7 @@ SAPI_API SAPI_POST_READER_FUNC(sapi_read_standard_form_data)
        int allocated_bytes=SAPI_POST_BLOCK_SIZE+1;
 
        if (SG(request_info).content_length > SG(post_max_size)) {
-               php_error(E_WARNING, "POST Content-Length of %d bytes exceeds the limit of %d bytes",
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "POST Content-Length of %d bytes exceeds the limit of %d bytes",
                                        SG(request_info).content_length, SG(post_max_size));
                return;
        }
@@ -199,7 +199,7 @@ SAPI_API SAPI_POST_READER_FUNC(sapi_read_standard_form_data)
                }
                SG(read_post_bytes) += read_bytes;
                if (SG(read_post_bytes) > SG(post_max_size)) {
-                       php_error(E_WARNING, "Actual POST length does not match Content-Length, and exceeds %d bytes", SG(post_max_size));
+                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Actual POST length does not match Content-Length, and exceeds %d bytes", SG(post_max_size));
                        return;
                }
                if (read_bytes < SAPI_POST_BLOCK_SIZE) {