#31653 [Bgs]: basename return error

From: Date: Tue, 25 Jan 2005 18:23:36 +0000
Subject: #31653 [Bgs]: basename return error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72795@lists.php.net to get a copy of this message
ID: 31653 User updated by: hunreal at gmail dot com Reported By: hunreal at gmail dot com Status: Bogus Bug Type: *General Issues Operating System: FreeBSD 4.11 -PHP Version: 5CVS-2005-01-22 (dev) +PHP Version: 5CVS-2005-01-26 (dev) New Comment: Today, I checked the latest CVS version <? echo basename("c:\abc\test.bak"); ?> result, c:\abc est.bak Previous Comments: ------------------------------------------------------------------------ [2005-01-23 07:06:47] hunreal at gmail dot com The win32 build work correctly with both unix path and windows path. But the src build in *nix is only work with basename(unix path) ------------------------------------------------------------------------ [2005-01-22 07:57:41] hunreal at gmail dot com Description: ------------ basename() error Reproduce code: --------------- <? echo basename('C:\Backup\My Documents\My Pictures\Diablotin.jpg'); ?> Expected result: ---------------- result ------------ Diablotin.jpg ------------ Actual result: -------------- result ---------- C:\Backup\My Documents\My Pictures\Diablotin.jpg ---------- It also make the file upload function run incorrectly. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31653&edit=1

« previous php.bugs (#72795) next »