php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6212 include() and require() statements always execute
Submitted: 2000-08-17 07:04 UTC Modified: 2000-08-17 07:41 UTC
From: paulrees at surfeu dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.0 OS: Win Nt
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: paulrees at surfeu dot com
New email:
PHP Version: OS:

 

 [2000-08-17 07:04 UTC] paulrees at surfeu dot com
$includeFile = false;

if($includeFile  == true);
{
	include "file_to_be_included.php";
}

"file_to_be_included.php" IS still included.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-17 07:41 UTC] stas@php.net
Your script is buggy. Remove ; after the if.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 23:00:01 2026 UTC