From:             michael at zedeler dot dk
Operating system: Linux
PHP version:      4.4.7
PHP Bug Type:     Filesystem function related
Bug description:  __FILE__ resolves symlinks - not mentioned in manual

Description:
------------
__FILE__ does not return the path used to invoke the current file, but
resolves symlinks.

This behaviour is extremely problematics, since important information is
thrown away. The web is teeming with postings from people that are
experiencing problems because of this.

In http://bugs.php.net/bug.php?id=37603 this bug was mentioned and the
response was that it is intended behavior with a reference to the manual.

The page

http://es.php.net/manual/en/language.constants.predefined.php

is the primary source of information for __FILE__, and it does not mention
resolving symlinks at all.

I'd like if we could have som kind of dialogue about how to solve the
problem, in stead of just having this bug being closed with a "Bogus"
status.

My suggestions are:

 1) introduce a new magical constant that behaves as it should.
 2) put a parameter in php.ini that changes how __FILE__ behaves.


Reproduce code:
---------------
This is basically a reopening of http://bugs.php.net/bug.php?id=37603

Expected result:
----------------
This is basically a reopening of http://bugs.php.net/bug.php?id=37603

Actual result:
--------------
This is basically a reopening of http://bugs.php.net/bug.php?id=37603

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

Reply via email to