|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-01-22 07:57 UTC] 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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 07:00:01 2025 UTC |
Today, I checked the latest CVS version <? echo basename("c:\abc\test.bak"); ?> result, c:\abc est.bakI am sorry for some mistake. But, <? echo basename('c:\test\a.txt'); ?> c:\test\a.txt