php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9847 fopen() fails with Error 0 on Forbidden URLs
Submitted: 2001-03-19 16:59 UTC Modified: 2001-10-29 02:38 UTC
From: bloch at incrementalimages dot com Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.0.4pl1 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bloch at incrementalimages dot com
New email:
PHP Version: OS:

 

 [2001-03-19 16:59 UTC] bloch at incrementalimages dot com
Perhaps this belongs in the URL related 
functions.

When fopen()-ing an URL that responds
with an HTTP 403 Forbidden, fopen()
fails with an Error 0.   There is no
way to distinguish this error from
a 'Not Found' type of error.

Workaround is to use cURL.

Eric

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-29 02:37 UTC] sniper@php.net
Moved this information into #9846, no use to have two
reports about same problem.

 [2001-10-29 02:37 UTC] sniper@php.net
This information moved to #9846. No need for two reports
about same issue.

 [2001-10-29 02:38 UTC] sniper@php.net
This information moved to #9846. No need for two reports
about same issue.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 21:01:31 2025 UTC