CVS update: php3/functions

From: Date: Tue, 11 May 1999 12:11:41 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-5510@lists.php.net to get a copy of this message
Date: Tuesday May 11, 1999 @ 8:11 Author: rasmus Update of /repository/php3/functions In directory php:/tmp/cvs-serv8089/functions Modified Files: apache.c file.c post.c Log Message: Some compiler warning fixes. And I need to track down the person who submitted the getput stuff. It looks completely bogus. Index: php3/functions/apache.c diff -u php3/functions/apache.c:1.46 php3/functions/apache.c:1.47 --- php3/functions/apache.c:1.46 Thu Apr 22 09:19:49 1999 +++ php3/functions/apache.c Tue May 11 08:11:40 1999 @@ -29,7 +29,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: apache.c,v 1.46 1999/04/22 13:19:49 ssb Exp $ */ +/* $Id: apache.c,v 1.47 1999/05/11 12:11:40 rasmus Exp $ */ #ifdef THREAD_SAFE #include "tls.h" #endif @@ -252,10 +252,10 @@ add_property_string(return_value,"the_request",rr->the_request,1); } if (rr->status_line) { - add_property_string(return_value,"status_line",rr->status_line,1); + add_property_string(return_value,"status_line",(char *)rr->status_line,1); } if (rr->method) { - add_property_string(return_value,"method",rr->method,1); + add_property_string(return_value,"method",(char *)rr->method,1); } if (rr->content_type) { add_property_string(return_value,"content_type",(char *)rr->content_type,1); Index: php3/functions/file.c diff -u php3/functions/file.c:1.207 php3/functions/file.c:1.208 --- php3/functions/file.c:1.207 Sun May 9 13:35:46 1999 +++ php3/functions/file.c Tue May 11 08:11:40 1999 @@ -26,7 +26,7 @@ | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> | +----------------------------------------------------------------------+ */ -/* $Id: file.c,v 1.207 1999/05/09 17:35:46 sas Exp $ */ +/* $Id: file.c,v 1.208 1999/05/11 12:11:40 rasmus Exp $ */ #ifdef THREAD_SAFE #include "tls.h" #endif @@ -1496,8 +1496,8 @@ pval *fd, *bytes; FILE *fp; - int id, len, br, type; - char *buf, *p, *rbuf, *rp, c, lc; + int id, len, type; + char *buf; int issock=0; int *sock,socketd=0; TLS_VARS; Index: php3/functions/post.c diff -u php3/functions/post.c:1.116 php3/functions/post.c:1.117 --- php3/functions/post.c:1.116 Sun Mar 7 16:45:51 1999 +++ php3/functions/post.c Tue May 11 08:11:41 1999 @@ -102,6 +102,12 @@ cnt = 0; do { #if APACHE +/* + FIXME ??? The following code makes absolutely no sense. upload_buffer is defined + but never used, and data is being read into buf which would cause a + seg-fault since no memory has been allocated for it, and on top of that + this buf is never used for anything. +*/ char upload_buffer[BUFSIZ]; bytes = read_client_block(php3_rqst, buf + cnt, min(length - cnt,BUFSIZ)); -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5510) next »