diff options
author | Derick Rethans <derick@php.net> | 2004-05-11 15:30:54 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2004-05-11 15:30:54 +0000 |
commit | 500f634db9330060208da2e6114c889e976f9b7d (patch) | |
tree | 39bfb02283cc207b28d65861d8966753be7f0f37 /main | |
parent | 4f77a021ce4205d0a143f8f8860a0a422ad0bf72 (diff) | |
download | php-git-500f634db9330060208da2e6114c889e976f9b7d.tar.gz |
- Fixed defines
Diffstat (limited to 'main')
-rw-r--r-- | main/rfc1867.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c index e133769a69..99bcd34f23 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -948,7 +948,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) cancel_upload = 0; if(strlen(filename) == 0) { -#ifdef DEBUG_FILE_UPLOAD +#if DEBUG_FILE_UPLOAD sapi_module.sapi_error(E_NOTICE, "No file uploaded"); #endif cancel_upload = UPLOAD_ERROR_D; @@ -957,12 +957,12 @@ 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)) { -#ifdef DEBUG_FILE_UPLOAD +#if 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)) { -#ifdef DEBUG_FILE_UPLOAD +#if 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; @@ -970,7 +970,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) wlen = fwrite(buff, 1, blen, fp); if (wlen < blen) { -#ifdef DEBUG_FILE_UPLOAD +#if 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; @@ -981,7 +981,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) } fclose(fp); -#ifdef DEBUG_FILE_UPLOAD +#if DEBUG_FILE_UPLOAD if(strlen(filename) > 0 && total_bytes == 0) { sapi_module.sapi_error(E_WARNING, "Uploaded file size 0 - file [%s=%s] not saved", param, filename); cancel_upload = 5; |