#25619 [NEW]: fopen crashes while opening redirected pages
| From: | info at kktcbul dot com | Date: | Sun, 21 Sep 2003 14:42:46 +0000 |
| Subject: | #25619 [NEW]: fopen crashes while opening redirected pages | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-47899@lists.php.net to get a copy of this message | ||
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(http://www.ntvmsnbc.com/news/235069.asp) [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(http://www.ntvmsnbc.com/news/235069.asp) [function.fopen]:
failed to create stream: Bad file descriptor in
C:\apache\Apache2\htdocs\test\wordcount.php on line
--
Edit bug report at http://bugs.php.net/?id=25619&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25619&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25619&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25619&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25619&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25619&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25619&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25619&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25619&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25619&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25619&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25619&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25619&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25619&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25619&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25619&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25619&r=float