RE: PHP 4.0 Bug #8639 Updated: fopen always return true in some case
| From: | Fr�d�ric VERGEZ | Date: | Thu, 11 Jan 2001 10:43:27 +0000 |
| Subject: | RE: PHP 4.0 Bug #8639 Updated: fopen always return true in some case | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-43768@lists.php.net to get a copy of this message | ||
i've inserted a : var_dump($http_response_header);
just after the fopen
the result is always 'NULL'
Frédéric VERGEZ
DNWeb - http://www.dnweb.fr <http://www.dnweb.fr>
-----Message d'origine-----
De : Bug Database [mailto:php-dev@lists.php.net]
Envoyé : mercredi 10 janvier 2001 21:16
À : fred@dnweb.fr
Objet : PHP 4.0 Bug #8639 Updated: fopen always return true in some case
ID: 8639
Updated by: venaas
Reported By: fred@dnweb.fr
Old-Status: Open
Status: Assigned
Bug Type: Unknown/Other Function
Assigned To: venaas
Comments:
The problem could be that fopen() currently doesn't support HTTP
redirects. Could you try to do
var_dump($http_response_header);
right after the fopen() call? If the header is a redirect, try to do
fopen() with the new location. If not we'll have to investigate further.
It would be useful to know what $http_response_header contains
anyway.
Stig
Previous Comments:
---------------------------------------------------------------------------
[2001-01-10 10:49:00] fred@dnweb.fr
It seems that :
$test=@fopen("http://$url/$urlphotos/".$reference."-1.jpg","r");
# (with all vars correct)
always return true (at least with 4.0.4) ?!
Is it because it's a picture ?
Didn't test it with an html file though ...
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8639