ID: 41480 Updated by: [EMAIL PROTECTED] Reported By: derek dot ethier at gmail dot com -Status: Open +Status: Bogus Bug Type: Filesystem function related Operating System: Windows Server 2003 PHP Version: 5.2.2 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php The current behavior is the expected one. Previous Comments: ------------------------------------------------------------------------ [2007-05-24 02:13:56] derek dot ethier at gmail dot com Description: ------------ In PHP < 5.2.2 the realpath function would return a string value on a valid path passed to the function. In 5.2.2 it returns false unless a filename is specified. Going over the documentation it looks like this might be an expected result, but it is different from earlier versions. Extensions: curl, ldap, mssql, mysql, pdo, pdo_sqlite, pdo_mssql, sqlite, tidy, ssh2 I'm using the php.ini file from my 5.2.1 installation and going over the incompatibilities and changes from 5.2.1 the only change that seems related is this one: - SplFileObject::getFilename() returns the filename, not relative/path/to/file, as of PHP 5.2.1. Reproduce code: --------------- $path1 = 'E:\\webroot\\'; $path2 = 'E:\\webroot\\index.php'; var_dump(realpath($path1)); var_dump(realpath($path2)); Expected result: ---------------- string 'E:\webroot\' (length=11) string 'E:\webroot\index.php' (length=20) Actual result: -------------- boolean false string 'E:\webroot\index.php' (length=20) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41480&edit=1