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
 [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: Tue May 21 08:01:31 2024 UTC