ID:               38790
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php dot net at yereth dot nl
-Status:           Open
+Status:           Bogus
 Bug Type:         Filesystem function related
 Operating System: SUSE 9.2
 PHP Version:      4.4.4
 New Comment:

Yes, this is expected behaviour.


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

[2006-09-12 14:20:35] php dot net at yereth dot nl

Description:
------------
__FILE__ resolves symlinks in 4.x.

This is very undesirable. If this was intentionally, perhaps another
magic constant can be introduced that does not resolve the symlink.
Besides that, I can always use realpath(__FILE__), which is another
reason why __FILE__ shouldn't resolve; resolving is easy, the other way
around is impossible without further contextual information.

Rephrasing the problem: if __FILE__ doesn't give me the name of the
symlinked file, there is nothing that does, as far as I know. This
restricts me terribly in my possibilities and forces developers to
redundancy, as symlinks do not give the desired result, obviously.

Hopefully you'll see that an addition to the magic constants or a
change in function of __FILE__ enhances the possibilities of
developers.

Thanks in advance!





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


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

Reply via email to