From:             
Operating system: Windows Vista/7
PHP version:      5.2.13
Package:          Directory function related
Bug Type:         Bug
Bug description:realpath isn't resolving symlinks/junctions

Description:
------------
This bug is maybe related to http://bugs.php.net/bug.php?id=51952



Your in your httpd.conf configured DOCUMENT_ROOT is
"C:\Sites\example.org\htdocs".

But this isn't a folder, it's a symlink/junction to the following folder: 

"C:\Foo".



Now you call "C:\Sites\example.org\htdocs\test.php"

Test script:
---------------
<?php

echo realpath(getcwd());



Expected result:
----------------
C:\Foo

Actual result:
--------------
C:\Sites\example.org\htdocs

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

Reply via email to