ID: 45506
User updated by: liber at iproom dot com
Reported By: liber at iproom dot com
-Status: Open
+Status: Bogus
Bug Type: *Directory/Filesystem functions
Operating System: Windows
PHP Version: 5.2.6
New Comment:
this should be 5.2.5 bug
Previous Comments:
------------------------------------------------------------------------
[2008-07-14 06:24:14] liber at iproom dot com
Description:
------------
realpath() changed its return value, that returns full path without
directory separator even the argument has.
EX:
Argument: './'
In 5.2.6: 'c:\abc'
In 5.2.5: 'c:\abc\'
Argument: '.'
In 5.2.6: 'c:\abc'
In 5.2.5: 'c:\abc'
I had tested on both Windows Vista and Windows 2003 Server.
Reproduce code:
---------------
php -r "echo realpath('./');"
Expected result:
----------------
'c:\abc\'
Actual result:
--------------
'c:\abc'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45506&edit=1