Bug #37603 [Com]: __FILE__ dereferences symlinks

From: Date: Thu, 25 Jan 2018 21:51:02 +0000
Subject: Bug #37603 [Com]: __FILE__ dereferences symlinks
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213709@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=37603&edit=1 ID: 37603 Comment by: jacob at gnu dot org Reported by: dmitry at rsl dot ru Summary: __FILE__ dereferences symlinks Status: Not a bug Type: Bug Package: Directory function related Operating System: Linux PHP Version: 4.4.2 Block user comment: N Private report: N New Comment: Looking forward to a workaround for this issue. Previous Comments: ------------------------------------------------------------------------ [2006-05-26 15:02:22] derick@php.net 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 . ------------------------------------------------------------------------ [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 https://bugs.php.net/bug.php?id=37603&edit=1

« previous php.bugs (#213709) next »