#32349 [Opn->Fbk]: basename with \

From: Date: Thu, 17 Mar 2005 08:34:07 +0000
Subject: #32349 [Opn->Fbk]: basename with \
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75413@lists.php.net to get a copy of this message
ID: 32349 Updated by: sniper@php.net Reported By: zamorov at edinorog dot ru -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: FreeBSD PHP Version: 4.3.10 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2005-03-17 09:28:13] zamorov at edinorog dot ru Description: ------------ basename not work correctly with windows path Reproduce code: --------------- $win = basename('C:\Windows\win.ini'); $unix = basename('/usr/local/etc/win.ini'); Expected result: ---------------- $win = 'win.ini'; $unix = 'win.ini'; Actual result: -------------- $win = 'C:\Windows\win.ini'; $unix = 'win.ini'; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32349&edit=1

« previous php.bugs (#75413) next »