Re: fopen() changes, please review this patch
| From: | Boian Bonev | Date: | Fri, 12 Jan 2001 19:50:17 +0000 |
| Subject: | Re: fopen() changes, please review this patch | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-43922@lists.php.net to get a copy of this message | ||
hi,
only one thing - insted of two empty lines it sounds (at least to me) that a
false value or a single empty line will be ok. there cannot be empty line in
header.
i haven't time to look at the patch, sorry.
b.
----- Original Message -----
From: "Stig Venaas" <Stig.Venaas@uninett.no>
To: <php-dev@lists.php.net>
Sent: Thursday, January 11, 2001 10:09 AM
Subject: [PHP-DEV] fopen() changes, please review this patch
> Hi
>
> I've changed http_fopen_wrapper.c (not in CVS yet) so that it follows
> redirects, just like fopen() did before 4.0.3, which I think is good.
> I've also changed $http_response_header so that all headers will be
> present. For instance if I do
> fopen("http://yahoo.com/", "r") the
> contents will be:
>
> array(7) {
> [0]=>
> string(15) "HTTP/1.0 302 RD"
> [1]=>
> string(31) "Location: http://www.yahoo.com/"
> [2]=>
> string(0) ""
> [3]=>
> string(0) ""
> [4]=>
> string(15) "HTTP/1.0 200 OK"
> [5]=>
> string(21) "Content-Length: 15315"