php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45506 realpath returns different value with previous version of PHP
Submitted: 2008-07-14 06:24 UTC Modified: 2008-07-14 06:55 UTC
From: liber at iproom dot com Assigned:
Status: Not a bug Package: *Directory/Filesystem functions
PHP Version: 5.2.6 OS: Windows
Private report: No CVE-ID: None
 [2008-07-14 06:24 UTC] 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'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-14 06:55 UTC] liber at iproom dot com
this should be 5.2.5 bug
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 17 10:05:45 2022 UTC