php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8639 fopen always return true in some case
Submitted: 2001-01-10 10:49 UTC Modified: 2001-03-09 21:14 UTC
From: fred at dnweb dot fr Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.4 OS: Linux RH6.1 / x86
Private report: No CVE-ID: None
 [2001-01-10 10:49 UTC] fred at dnweb dot 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 ...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-10 15:15 UTC] venaas@php.net
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

 [2001-01-14 06:48 UTC] venaas@php.net
I've made some changes, fixed a bug and added more detailed
error reporting. Could you try the latest code, either from CVS
or snaps.php.net? I'm interested in the contents of
$http_response_header and any error messages you get.

 [2001-03-09 21:14 UTC] sniper@php.net
No feedback.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 11:01:29 2024 UTC