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

From: Date: Fri, 18 Mar 2005 13:41:30 +0000
Subject: #32349 [Fbk->Opn]: basename with \
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75465@lists.php.net to get a copy of this message
ID: 32349 User updated by: zamorov at edinorog dot ru Reported By: zamorov at edinorog dot ru -Status: Feedback +Status: Open Bug Type: Filesystem function related Operating System: FreeBSD -PHP Version: 4.3.10 +PHP Version: php4-STABLE-200503181130 New Comment: That problem remained open. Previous Comments: ------------------------------------------------------------------------ [2005-03-17 09:34:06] sniper@php.net 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 ------------------------------------------------------------------------ [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 (#75465) next »