php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: koles at atrey dot karlin dot mff dot cuni dot cz
New email:
PHP Version: OS:

 

 [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.

Patches

Pull Requests

History

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC