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

Add a Patch

Pull Requests

Add a Pull Request

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: Wed Feb 28 05:01:32 2024 UTC