#36809 [Asn->Csd]: __FILE__ behavior changed between last week and this week

From: Date: Tue, 21 Mar 2006 08:50:07 +0000
Subject: #36809 [Asn->Csd]: __FILE__ behavior changed between last week and this week
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94702@lists.php.net to get a copy of this message
 ID:               36809
 Updated by:       dmitry@php.net
 Reported By:      cellog@php.net
-Status:           Assigned
+Status:           Closed
 Bug Type:         Scripting Engine problem
 Operating System: linux (gentoo)
 PHP Version:      5CVS-2006-03-20 (CVS)
 Assigned To:      dmitry
 New Comment:

Fixed in CVS HEAD and PHP_5_1.


Previous Comments:
------------------------------------------------------------------------

[2006-03-21 00:09:06] 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 00:02:58] 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:02:24] 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



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36809&edit=1


Thread (4 messages)

« previous php.bugs (#94702) next »