Bug #72901 [Opn->Fbk]: realpath() not utilizing UTF-8

From: Date: Fri, 19 Aug 2016 23:56:48 +0000
Subject: Bug #72901 [Opn->Fbk]: realpath() not utilizing UTF-8
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203405@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: Open +Status: Feedback Type: Bug Package: *General Issues Operating System: Win10 x64 Polish PHP Version: 7.1.0beta3 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#203405) next »