#31653 [Opn->Bgs]: basename return error

From: Date: Sun, 23 Jan 2005 06:06:48 +0000
Subject: #31653 [Opn->Bgs]: basename return error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72685@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: Open +Status: Bogus Bug Type: *General Issues Operating System: FreeBSD 4.11 PHP Version: 5CVS-2005-01-22 (dev) New Comment: 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) Previous Comments: ------------------------------------------------------------------------ [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 (#72685) next »