derick Tue May 11 11:30:54 2004 EDT
Modified files:
/php-src/main rfc1867.c
Log:
- Fixed defines
http://cvs.php.net/diff.php/php-src/main/rfc1867.c?r1=1.154&r2=1.155&ty=u
Index: php-src/main/rfc1867.c
diff -u php-src/main/rfc1867.c:1.154 php-src/main/rfc1867.c:1.155
--- php-src/main/rfc1867.c:1.154 Thu Mar 25 16:27:23 2004
+++ php-src/main/rfc1867.c Tue May 11 11:30:54 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: rfc1867.c,v 1.154 2004/03/25 21:27:23 derick Exp $ */
+/* $Id: rfc1867.c,v 1.155 2004/05/11 15:30:54 derick Exp $ */
/*
* This product includes software developed by the Apache Group
@@ -948,7 +948,7 @@
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 @@
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 @@
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 @@
}
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;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php