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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 12:01:32 2024 UTC