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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: liber at iproom dot com
New email:
PHP Version: OS:

 

 [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: Mon Aug 15 22:05:43 2022 UTC