|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2019-11-15 10:41 UTC] jasverix at gmail dot com
Description: ------------ We have a filename starting with a non-ASCII filename character like "Æ", "Ø" or "Å". Then we try to get the filename without extension using PATHINFO_FILENAME. PHP will trim the first character from the resulting string. Test script: --------------- <?php $fileName = 'ÅfileÅnameÅ.docx'; // outputs "fileÅnameÅ" - missing starting character echo pathinfo($fileName, PATHINFO_FILENAME) . "\n"; Expected result: ---------------- ÅfileÅnameÅ Actual result: -------------- fileÅnameÅ PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 07:00:02 2025 UTC |
PHP Version: PHP 7.2.24-1+0~20191026.31+debian10~1.gbpbbacde (cli) (built: Oct 26 2019 14:20:35) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.24-1+0~20191026.31+debian10~1.gbpbbacde, Copyright (c) 1999-2018, by Zend Technologies