From: info at kktcbul dot com
Operating system: windows xp
PHP version: 4.3.1
PHP Bug Type: Filesystem function related
Bug description: fopen crashes while opening redirected pages

Description:
------------
fopen function can't open redirected websites. For example, if a website,
written in asp, redirect to another page using
"response.redirect(blahblah.asp)", fopen can't open the redirected page.

"http://www.ntvmsnbc.com/news/235069.asp"
redirects to
"http://www.ntvmsnbc.com/news/create_p1.asp?URL=www.ntvmsnbc.com/news/235069.asp"

but fopen can't open second address when i write first address. And gives
this warning message

Warning: fopen([url]http://www.ntvmsnbc.com/news/235069.asp[/url]) [function.fopen]:
failed to create stream: Bad file descriptor in
C:\apache\Apache2\htdocs\test\wordcount.php on line 2

Reproduce code:
---------------
fopen ("http://www.ntvmsnbc.com/news/235069.asp","r");

Actual result:
--------------
Warning: fopen([url]http://www.ntvmsnbc.com/news/235069.asp[/url]) [function.fopen]:
failed to create stream: Bad file descriptor in
C:\apache\Apache2\htdocs\test\wordcount.php on line

--
Edit bug report at [url]http://bugs.php.net/?id=25619&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25619&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25619&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25619&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25619&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25619&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25619&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25619&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25619&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25619&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25619&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25619&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25619&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25619&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25619&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25619&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=25619&r=float[/url]