CVS update: php3
| From: | rasmus | Date: | Thu, 20 Aug 1998 12:41:07 +0000 |
| Subject: | CVS update: php3 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-345@lists.php.net to get a copy of this message | ||
Date: Thursday August 20, 1998 @ 8:41
Author: rasmus
Update of /repository/php3
In directory asf:/export/home/rasmus/php3
Modified Files:
ChangeLog fopen-wrappers.c
Log Message:
Add port number to host header in the fopen wrapper code
Index: php3/ChangeLog
diff -c php3/ChangeLog:1.450 php3/ChangeLog:1.451
*** php3/ChangeLog:1.450 Tue Aug 18 17:08:49 1998
--- php3/ChangeLog Thu Aug 20 08:40:58 1998
***************
*** 4,9 ****
--- 4,10 ----
- Fix potential core dumps in imap_append and imap_fetchtext_full
- Fix problem in SetCookie() function related to long cookies
- Add uasort() function to go along with usort (like sort() and asort())
+ - Add port number to Host header as per section 14.23 of the HTTP 1.1 RFC
August 15, 1998 Version 3.0.3
- Changed the name of fopen_basedir to open_basedir, to be a little more
Index: php3/fopen-wrappers.c
diff -c php3/fopen-wrappers.c:1.44 php3/fopen-wrappers.c:1.45
*** php3/fopen-wrappers.c:1.44 Fri Aug 14 19:47:11 1998
--- php3/fopen-wrappers.c Thu Aug 20 08:40:58 1998
***************
*** 27,33 ****
| Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
! /* $Id: fopen-wrappers.c,v 1.44 1998/08/14 23:47:11 steffann Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
--- 27,33 ----
| Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
! /* $Id: fopen-wrappers.c,v 1.45 1998/08/20 12:40:58 rasmus Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
***************
*** 487,492 ****
--- 487,497 ----
/* send a Host: header so name-based virtual hosts work */
SOCK_WRITE("Host: ", *socketd);
SOCK_WRITE(resource->host, *socketd);
+ if(resource->port!=80) {
+ sprintf(tmp_line,"%i",resource->port);
+ SOCK_WRITE(":", *socketd);
+ SOCK_WRITE(tmp_line, *socketd);
+ }
SOCK_WRITE("\n", *socketd);
/* identify ourselves */
--
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