|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37146 file_get_contents fails with some URLs
Submitted: 2006-04-20 11:27 UTC Modified: 2006-04-20 11:29 UTC
From: mx at tut dot by Assigned:
Status: Not a bug Package: Streams related
PHP Version: 5.1.2 OS: Debian Linux
Private report: No CVE-ID: None
 [2006-04-20 11:27 UTC] mx at tut dot by
the function file_get_contents() doesn't work with some URLs, I assume the problem is with URL parsing, when URL has HTTP request parameters, like ""

Reproduce code:

$content = file_get_contents(";y=82&amp;sig=l23WoOTKgoZalMdt.DZN2w--");

print $content;


Expected result:
GIF image file dump

Actual result:
PHP Warning:  file_get_contents(";y=90&amp;sig=F0rDybhZKx.XPw7xzIyKQg--"): failed to open stream


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-20 11:29 UTC]
The second URL is an 404
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 29 00:01:28 2024 UTC