php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17185 Bad error message
Submitted: 2002-05-13 13:28 UTC Modified: 2002-07-01 15:40 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: roger at wheelpro dot co dot uk Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.1.2 OS: FreeBSD 4.5
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: roger at wheelpro dot co dot uk
New email:
PHP Version: OS:

 

 [2002-05-13 13:28 UTC] roger at wheelpro dot co dot uk
When using readfile("http://domain.com/xxx.html") where xxx.html does not exist (404), readfile generates the warning...

Warning: readfile("http://www.wheelpro.co.uk/xxx.html") - Message too long in /home/roger/wheelpro/htdocs/read.php on line 11

Message too long???

However, regardless of any message I would still expect the 404 output from the server?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-01 15:40 UTC] sander@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

This is what I get with 4.3.0-dev:
Warning - HTTP request failed! HTTP/1.1 404 Not Found
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 14 19:01:26 2024 UTC