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
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: 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: Fri Oct 11 22:01:45 2024 UTC