PHP 4.0 Bug #9847: fopen() fails with Error 0 on Forbidden URLs
| From: | bloch at incrementalimages dot com | Date: | Mon, 19 Mar 2001 21:59:04 +0000 |
| Subject: | PHP 4.0 Bug #9847: fopen() fails with Error 0 on Forbidden URLs | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49410@lists.php.net to get a copy of this message | ||
From: bloch@incrementalimages.com
Operating system:
PHP version: 4.0.4pl1
PHP Bug Type: Filesystem function related
Bug description: fopen() fails with Error 0 on Forbidden URLs
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
--
Edit Bug report at: http://bugs.php.net/?id=9847&edit=1