|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72 include/require of bad files crashes php
Submitted: 1998-02-16 12:56 UTC Modified: 1998-07-28 15:15 UTC
From: koles at atrey dot karlin dot mff dot cuni dot cz Assigned: zeev (profile)
Status: Closed Package: Parser error
PHP Version: 3.0 Latest CVS OS: Linux 2.0.33 (RH 5.0)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
31 - 19 = ?
Subscribe to this entry?

 [1998-02-16 12:56 UTC] koles at atrey dot karlin dot mff dot cuni dot cz
When I try to include empty file name or a directory
name using require or include, PHP crashes instead of
displaying "failed opening file" error message.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-07-28 15:15 UTC] zeev
Empty file names don't appear to cause require() and
include() to crash, but directories do cause the parser
to barf in a way that isn't trapped by the normal error
handling mechanisms.

Time to close this bug, it'll never be changed in 3.0.
We may add a stat() in 3.1 to ensure that the file is
readable, if it doesn't hurt performance too much.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Sep 22 12:01:24 2023 UTC