#25619 [Fbk->Bgs]: fopen crashes while opening redirected pages

From: Date: Tue, 23 Sep 2003 10:02:49 +0000
Subject: #25619 [Fbk->Bgs]: fopen crashes while opening redirected pages
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-47980@lists.php.net to get a copy of this message
 ID:               25619
 Updated by:       magnus@php.net
 Reported By:      info at kktcbul dot com
-Status:           Feedback
+Status:           Bogus
 Bug Type:         Filesystem function related
 Operating System: windows xp
 PHP Version:      4.3.1
 New Comment:

This is already fixed. See bug #22508


Previous Comments:
------------------------------------------------------------------------

[2003-09-21 10:52:17] rasmus@php.net

I am pretty sure this was fixed.  Try the latest version.

------------------------------------------------------------------------

[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


Thread (3 messages)

« previous php.bugs (#47980) next »