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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 21:01:27 2025 UTC