ID: 44071 Updated by: [EMAIL PROTECTED] Reported By: csaba at alum dot mit dot edu -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Windows PHP Version: 5.2.5 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi Previous Comments: ------------------------------------------------------------------------ [2008-02-08 02:08:29] csaba at alum dot mit dot edu is_file and is_dir seem to be similarly affected. For example realpath("c:frump") will return false if c:\frump does not exist (note the extra backslash), whereas it should be checking for frump hanging off the current directory on the c: drive ------------------------------------------------------------------------ [2008-02-07 16:26:22] csaba at alum dot mit dot edu 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 this bug report at http://bugs.php.net/?id=44071&edit=1
