php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #466 require() / include() does not execute included file
Submitted: 1998-06-17 11:15 UTC Modified: 1998-06-17 12:22 UTC
From: woecherl at mlcomputing dot de Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Final Release OS: Windows NT 3.51
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: woecherl at mlcomputing dot de
New email:
PHP Version: OS:

 

 [1998-06-17 11:15 UTC] woecherl at mlcomputing dot de
compiled PHP used: downloaded binary distribution for Win NT from www.php.net (Final version)

Problem:
The following example PHP script includes another PHP script:
<?
    require("settings.php3");
    ....
?>
I expect that settings.php3 is executed after inclusion, but instead PHP dumps it to output WITHOUT executing it. 
I could not find anything on that issue in the documentation, the FAQ, the mailing list and bug list. I belive this to be
a misbehaviour, since just including a file for output without processing is done by the readfile() function. I encountered
this behaviour with both the include() and require() statement, and also with the RC4 version.
So is this possibly only a bug in the binary distribution, or is it corrupted in some way?

Best regards,
Michael Woecherl

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-06-17 12:22 UTC] rasmus
You are probably not putting your PHP statements inside
<?...?> tags in that settings.php3 file.
That was it - bug closed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 02:01:28 2024 UTC