From:             csaba at alum dot mit dot edu
Operating system: Win XP
PHP version:      5.2.5
PHP Bug Type:     Filesystem function related
Bug description:  realpath does not handle drive letters correctly

Description:
------------
realpath does not handle a drive letters correctly, when the
drive letter is not followed by a backslash:

1)  When books is a subdirectory of the current working directory on the
c: drive (getcwd) realpath("c:books") returns false


2)  realpath("c:.") and realpath("c:..") both return the three character
string: C:\

Expected result:
----------------
1.  books\ should be suffixed onto the current working directory of the c:
drive

2.  The current working directory of the c: drive (and one level higher
for the case of ..) should be returned, instead of the root.

Csaba Gabor from Vienna


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

Reply via email to