php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25619 fopen crashes while opening redirected pages
Submitted: 2003-09-21 10:42 UTC Modified: 2003-09-23 06:02 UTC
From: info at kktcbul dot com Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.3.1 OS: windows xp
Private report: No CVE-ID: None
 [2003-09-21 10:42 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-21 10:52 UTC] rasmus@php.net
I am pretty sure this was fixed.  Try the latest version.
 [2003-09-23 06:02 UTC] magnus@php.net
This is already fixed. See bug #22508
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 22:01:28 2024 UTC