Bug #72901 [Fbk->NoF]: realpath() not utilizing UTF-8
| From: | php-bugs at lists dot php dot net | Date: | Sun, 28 Aug 2016 04:22:34 +0000 |
| Subject: | Bug #72901 [Fbk->NoF]: realpath() not utilizing UTF-8 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-203624@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72901&edit=1
ID: 72901
Updated by: php-bugs@lists.php.net
Reported by: bugzilla77 at gmail dot com
Summary: realpath() not utilizing UTF-8
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: *General Issues
Operating System: Win10 x64 Polish
PHP Version: 7.1.0beta3
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2016-08-19 23:56:46] ab@php.net
Thanks for the report. Please be sure your file does actually exist and you're in the right CWD
(or better use an absolute path). realpath() will return false, if a file doesn't exist. Fe,
running touch('żóÅÄ.txt'); realpath('żóÅÄ.txt');
there's no issue. Please check and give more info.
Thanks.
------------------------------------------------------------------------
[2016-08-19 22:28:49] bugzilla77 at gmail dot com
Description:
------------
https://github.com/php/php-src/blob/php-7.1.0beta3/UPGRADING
The recommended way to handle file paths, I/O and other related topics is by utilizing UTF-8.
Test script:
---------------
<?php
print(realpath('żóÅÄ.txt')); // stript UTF-8 encoded
?>
Expected result:
----------------
c:/htdocs/żóÅÄ.txt (UTF-8 encoded)
Actual result:
--------------
realpath() not utilizing UTF-8
For example: filesize(), filemtime(), readfile() are utilizing UTF-8
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72901&edit=1