#45506 [Opn->Bgs]: realpath returns different value with previous version of PHP

From: Date: Mon, 14 Jul 2008 06:55:07 +0000
Subject: #45506 [Opn->Bgs]: realpath returns different value with previous version of PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126651@lists.php.net to get a copy of this message
ID: 45506 User updated by: liber at iproom dot com Reported By: liber at iproom dot com -Status: Open +Status: Bogus Bug Type: *Directory/Filesystem functions Operating System: Windows PHP Version: 5.2.6 New Comment: this should be 5.2.5 bug Previous Comments: ------------------------------------------------------------------------ [2008-07-14 06:24:14] 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' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45506&edit=1

« previous php.bugs (#126651) next »