From:             php dot net at yereth dot nl
Operating system: SUSE 9.2
PHP version:      4.4.4
PHP Bug Type:     Filesystem function related
Bug description:  __FILE__ resolves symlinks?

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 bug report at http://bugs.php.net/?id=38790&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38790&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38790&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38790&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38790&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38790&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38790&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38790&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38790&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38790&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38790&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38790&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38790&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38790&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38790&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38790&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38790&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38790&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38790&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38790&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38790&r=mysqlcfg

Reply via email to