|  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
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
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("") where xxx.html does not exist (404), readfile generates the warning...

Warning: readfile("") - 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?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-01 15:40 UTC]
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at In case this was a documentation 
problem, the fix will show up soon at
In case this was a website problem, the change will show
up on the 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-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 01 13:05:53 2022 UTC