From:             
Operating system: Mac OSX
PHP version:      Irrelevant
Package:          Filesystem function related
Bug Type:         Bug
Bug description:__FILE__ case inconsistency on Mac / MAMP

Description:
------------
---
>From manual page: http://www.php.net/language.constants.predefined
---

__FILE__ and __DIR__, return lower case paths when in the calling file, and
mixed 
case paths in an included file, when run on MAMP.

Test script:
---------------
//The following will show all lower case paths when in the calling file, 
//and mixed case paths in an included file, when run on MAMP.

echo "<br/>__FILE__ = ".__FILE__;
echo "<br/>__DIR__ = ".__DIR__;

// include another file with the same code ...

Actual result:
--------------
__FILE__ = /users/me/stuff/mamp_server/my_site/myfile.php
__DIR__ = /users/me/stuff/mamp_server/my_site

__FILE__ = /Users/me/Stuff/mamp_server/my_site/myfile.php
__DIR__ = /Users/me/Stuff/mamp_server/my_site

-- 
Edit bug report at https://bugs.php.net/bug.php?id=71670&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=71670&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=71670&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=71670&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=71670&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=71670&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=71670&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=71670&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=71670&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=71670&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=71670&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=71670&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=71670&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=71670&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=71670&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=71670&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=71670&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=71670&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=71670&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=71670&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=71670&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=71670&r=mysqlcfg

Reply via email to