summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2004-03-24 13:31:20 +0000
committerDerick Rethans <derick@php.net>2004-03-24 13:31:20 +0000
commit2face60bef64ac8fa0f7df527450daa60c8ae5aa (patch)
tree20e2fe530486b0be8fe95f32f3ada066e1f7616a /main
parent7baa132194e636e86686ad2e65b7ab410f5f4990 (diff)
downloadphp-git-2face60bef64ac8fa0f7df527450daa60c8ae5aa.tar.gz
- Fixed NEWS
#- Can we *please* keep this in order?
Diffstat (limited to 'main')
-rw-r--r--main/rfc1867.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c
index 3988a9f330..1370f5b5a6 100644
--- a/main/rfc1867.c
+++ b/main/rfc1867.c
@@ -957,16 +957,22 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler)
while (!cancel_upload && (blen = multipart_buffer_read(mbuff, buff, sizeof(buff) TSRMLS_CC)))
{
if (PG(upload_max_filesize) > 0 && total_bytes > PG(upload_max_filesize)) {
- sapi_module.sapi_error(E_WARNING, "upload_max_filesize of %ld bytes exceeded - file [%s=%s] not saved", PG(upload_max_filesize), param, filename);
+#ifdef DEBUG_FILE_UPLOAD
+ sapi_module.sapi_error(E_NOTICE, "upload_max_filesize of %ld bytes exceeded - file [%s=%s] not saved", PG(upload_max_filesize), param, filename);
+#endif
cancel_upload = UPLOAD_ERROR_A;
} else if (max_file_size && (total_bytes > max_file_size)) {
- sapi_module.sapi_error(E_WARNING, "MAX_FILE_SIZE of %ld bytes exceeded - file [%s=%s] not saved", max_file_size, param, filename);
+#ifdef DEBUG_FILE_UPLOAD
+ sapi_module.sapi_error(E_NOTICE, "MAX_FILE_SIZE of %ld bytes exceeded - file [%s=%s] not saved", max_file_size, param, filename);
+#endif
cancel_upload = UPLOAD_ERROR_B;
} else if (blen > 0) {
wlen = fwrite(buff, 1, blen, fp);
if (wlen < blen) {
- sapi_module.sapi_error(E_WARNING, "Only %d bytes were written, expected to write %ld", wlen, blen);
+#ifdef DEBUG_FILE_UPLOAD
+ sapi_module.sapi_error(E_NOTICE, "Only %d bytes were written, expected to write %ld", wlen, blen);
+#endif
cancel_upload = UPLOAD_ERROR_C;
} else {
total_bytes += wlen;