#25619 [Opn->Fbk]: fopen crashes while opening redirected pages
| From: | rasmus@php.net | Date: | Sun, 21 Sep 2003 14:52:17 +0000 |
| Subject: | #25619 [Opn->Fbk]: fopen crashes while opening redirected pages | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-47900@lists.php.net to get a copy of this message | ||
ID: 25619
Updated by: rasmus@php.net
Reported By: info at kktcbul dot com
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: windows xp
PHP Version: 4.3.1
New Comment:
I am pretty sure this was fixed. Try the latest version.
Previous Comments:
------------------------------------------------------------------------
[2003-09-21 10:42:46] info at kktcbul dot com
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 this bug report at http://bugs.php.net/?id=25619&edit=1