php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40585 require and include failed with files names foo.tpl.php
Submitted: 2007-02-21 20:16 UTC Modified: 2007-02-21 20:22 UTC
From: cmorg at code dot de Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.1 OS: FreeBSD 6.2 STABLE
Private report: No CVE-ID: None
 [2007-02-21 20:16 UTC] cmorg at code dot de
Description:
------------
Include or require causes an Fatal Error when you want to load a file name something.tpl.php . Named the file without .tpl like something.php then there is no problem.

Reproduce code:
---------------
test.tpl.php and test.php:
<?
phpinfo();
?>

include.php:
<?
# failed
require 'test.tpl.php';

# success
require 'test.php';
?>

Expected result:
----------------
see phpinfo page


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-21 20:22 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Jun 19 20:00:02 2026 UTC