#37603 [Opn->Bgs]: __FILE__ dereferences symlinks
| From: | derick@php.net | Date: | Fri, 26 May 2006 15:02:22 +0000 |
| Subject: | #37603 [Opn->Bgs]: __FILE__ dereferences symlinks | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-97647@lists.php.net to get a copy of this message | ||
ID: 37603
Updated by: derick@php.net
Reported By: dmitry at rsl dot ru
-Status: Open
+Status: Bogus
Bug Type: Directory function related
Operating System: Linux
PHP Version: 4.4.2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
.
Previous Comments:
------------------------------------------------------------------------
[2006-05-26 14:55:40] dmitry at rsl dot ru
Description:
------------
I have test2.php file, which is symlink to test.php
test.php is:
<?=__FILE__; ?>
No matter which file is executed, the result is the same
[dvereschaka@ns test1]$ php test.php ; php test2.php
/home/dvereschaka/test/test1/test.php
/home/dvereschaka/test/test1/test.php
Reproduce code:
---------------
<?=__FILE__; ?>
Expected result:
----------------
/home/dvereschaka/test/test1/test.php
/home/dvereschaka/test/test1/test2.php
Actual result:
--------------
/home/dvereschaka/test/test1/test.php
/home/dvereschaka/test/test1/test.php
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37603&edit=1