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-26 (dev)
New Comment:
I am sorry for some mistake.
But,
<?
echo basename('c:\test\a.txt');
?>
c:\test\a.txt
Previous Comments:
------------------------------------------------------------------------
[2005-01-25 19:38:51] [EMAIL PROTECTED]
no bug here.
read this:
http://php.net/manual/en/language.types.string.php#language.types.string.syntax.double
------------------------------------------------------------------------
[2005-01-25 19:23:35] hunreal at gmail dot com
Today, I checked the latest CVS version
<?
echo basename("c:\abc\test.bak");
?>
result,
c:\abc est.bak
------------------------------------------------------------------------
[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