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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 12:01:29 2024 UTC