|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28981 dirname faild in UTF8 dirname
Submitted: 2004-07-01 08:02 UTC Modified: 2004-07-09 01:00 UTC
From: hunix at hunix dot idv dot tw Assigned:
Status: No Feedback Package: Directory function related
PHP Version: 5.0.0RC3 OS: Linux 2.4.26
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
43 + 7 = ?
Subscribe to this entry?

 [2004-07-01 08:02 UTC] hunix at hunix dot idv dot tw
When calling dirname with an UTF-8 dir-string, The dirname can NOT return non ASCII strings. For example, dirname("/x/y/z/UTF-8name/basename"); the return value would be "/x/y/z/name" not "/x/y/z/UTF-8name". The same code work on php-4.3.5, php-4.3.6, php-4.3.7 very well.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-01 09:27 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.
 [2004-07-09 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 22 04:01:31 2024 UTC