|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2016-08-19 22:28 UTC] 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 04:00:01 2025 UTC |
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.