php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7053 after second include() or require() of the same file php does not set __FILE__
Submitted: 2000-10-06 03:39 UTC Modified: 2000-10-28 23:56 UTC
From: mranner at jawa dot at Assigned:
Status: Closed Package: *Function Specific
PHP Version: 4.0.2 OS: FreeBSD 4.1
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:
22 + 2 = ?
Subscribe to this entry?

 
 [2000-10-06 03:39 UTC] mranner at jawa dot at
<?
// includes file include.inc
echo "my name is " . __FILE__;
?>

<?
// includer main.php
include("include.inc");
include("include.inc");
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-10 08:34 UTC] stas@php.net
Failed to reproduce on current CVS. Please check the current CVS or 4.0.3
 [2000-10-28 23:56 UTC] sniper@php.net
No feedback. Please update to PHP 4.0.3pl1 and reopen
this bug report if problem still exists with it.

--Jani

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Sep 21 23:01:27 2019 UTC