php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36809 __FILE__ behavior changed between last week and this week
Submitted: 2006-03-21 00:02 UTC Modified: 2006-03-21 09:50 UTC
From: cellog@php.net Assigned: dmitry (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 5CVS-2006-03-20 (CVS) OS: linux (gentoo)
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:
26 - 16 = ?
Subscribe to this entry?

 
 [2006-03-21 00:02 UTC] cellog@php.net
Description:
------------
if test.php is:

<?php echo __FILE__; ?>

running "php test.php" used to spit out the full path to test.php, now it just spits out "test.php"

note that

php -r "include 'test.php';"

spits out the whole path to test.php


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-21 00:02 UTC] cellog@php.net
[16:49:22] <tony2002> fill the report and assign it to Dmitry
[16:49:41] <tony2002> it's definitely related to the hacks he did recently
 [2006-03-21 00:09 UTC] tony2001@php.net
Yes, I guess it's related to the optimization hacks done ~week ago, related to runtime constants fetching etc.
Dmitry, please check it out.
 [2006-03-21 09:50 UTC] dmitry@php.net
Fixed in CVS HEAD and PHP_5_1.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 19:01:29 2024 UTC