Bug #72901 [NoF->Nab]: realpath() not utilizing UTF-8
| From: | ab@php.net | Date: | Sun, 22 Oct 2017 20:07:32 +0000 |
| Subject: | Bug #72901 [NoF->Nab]: realpath() not utilizing UTF-8 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-211825@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: ab@php.net
Reported by: bugzilla77 at gmail dot com
Summary: realpath() not utilizing UTF-8
-Status: No Feedback
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: Win10 x64 Polish
PHP Version: 7.1.0beta3
Block user comment: N
Private report: N
New Comment:
This doesn't turn to be a UTF-8 issue after all. The corresponding PHP settings have to be met.
Please report with more details otherwise.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2016-08-28 04:22:34] php-bugs at lists dot php dot net
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.
------------------------------------------------------------------------
[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