|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: liber at iproom dot com
New email:
PHP Version: OS:


 [2008-07-14 06:24 UTC] liber at iproom dot com
realpath() changed its return value, that returns full path without directory separator even the argument has.

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:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


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-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 09:01:28 2024 UTC