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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
38 - 4 = ?
Subscribe to this entry?

 
 [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: Sat Jun 01 11:01:33 2024 UTC