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 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

Pull Requests

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 Dec 04 18:01:31 2024 UTC