Index: main/SAPI.c =================================================================== RCS file: /repository/php-src/main/SAPI.c,v retrieving revision 1.202.2.7.2.1 diff -u -r1.202.2.7.2.1 SAPI.c --- main/SAPI.c 10 May 2006 21:19:32 -0000 1.202.2.7.2.1 +++ main/SAPI.c 13 May 2006 21:05:36 -0000 @@ -193,8 +193,8 @@ SAPI_API SAPI_POST_READER_FUNC(sapi_read_standard_form_data) { - int read_bytes; - int allocated_bytes=SAPI_POST_BLOCK_SIZE+1; + long read_bytes; + long allocated_bytes=SAPI_POST_BLOCK_SIZE+1; if (SG(request_info).content_length > SG(post_max_size)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "POST Content-Length of %ld bytes exceeds the limit of %ld bytes", Index: main/SAPI.h =================================================================== RCS file: /repository/php-src/main/SAPI.h,v retrieving revision 1.114.2.1 diff -u -r1.114.2.1 SAPI.h --- main/SAPI.h 1 Jan 2006 12:50:17 -0000 1.114.2.1 +++ main/SAPI.h 13 May 2006 21:05:36 -0000 @@ -118,7 +118,7 @@ void *server_context; sapi_request_info request_info; sapi_headers_struct sapi_headers; - int read_post_bytes; + long read_post_bytes; unsigned char headers_sent; struct stat global_stat; char *default_mimetype; Index: sapi/apache/mod_php5.c =================================================================== RCS file: /repository/php-src/sapi/apache/mod_php5.c,v retrieving revision 1.19.2.7.2.1 diff -u -r1.19.2.7.2.1 mod_php5.c --- sapi/apache/mod_php5.c 10 May 2006 21:19:32 -0000 1.19.2.7.2.1 +++ sapi/apache/mod_php5.c 13 May 2006 21:05:36 -0000 @@ -37,7 +37,7 @@ int apache_php_module_main(request_rec *r, int display_source_mode TSRMLS_DC); static void php_save_umask(void); static void php_restore_umask(void); -static int sapi_apache_read_post(char *buffer, uint count_bytes TSRMLS_DC); +static long sapi_apache_read_post(char *buffer, uint count_bytes TSRMLS_DC); static char *sapi_apache_read_cookies(TSRMLS_D); static int sapi_apache_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers TSRMLS_DC); static int sapi_apache_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC); @@ -125,9 +125,9 @@ /* {{{ sapi_apache_read_post */ -static int sapi_apache_read_post(char *buffer, uint count_bytes TSRMLS_DC) +static long sapi_apache_read_post(char *buffer, uint count_bytes TSRMLS_DC) { - uint total_read_bytes=0, read_bytes; + long total_read_bytes=0, read_bytes; request_rec *r = (request_rec *) SG(server_context); void (*handler)(int);