Bug #80130 [NEW]: Wrong result of pathinfo function with PATHINFO_FILENAME parameter
| From: | he dot expande at gmail dot com | Date: | Mon, 21 Sep 2020 18:47:50 +0000 |
| Subject: | Bug #80130 [NEW]: Wrong result of pathinfo function with PATHINFO_FILENAME parameter | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-229116@lists.php.net to get a copy of this message | ||
From: he dot expande at gmail dot com
Operating system: Debian 10 (buster)
PHP version: 7.4.10
Package: *Directory/Filesystem functions
Bug Type: Bug
Bug description:Wrong result of pathinfo function with PATHINFO_FILENAME parameter
Description:
------------
Information about the software on which the problem is observed:
> php -v
PHP 7.4.10 (cli) (built: Sep 10 2020 14:00:50) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.10, Copyright (c), by Zend Technologies
with Xdebug v2.9.6, Copyright (c) 2002-2020, by Derick Rethans
> php test.php
/var/www/test.php:3:
string(36) " ÑкÑана 2020-09-21 в 13.05.29"
Information about the software on which the correct behavior:
>php -v
PHP 7.3.2 (cli) (built: Feb 5 2019 22:19:09) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.2, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.2, Copyright (c) 1999-2018, by Zend
Technologies
> php test.php
string(48) "Снимок ÑкÑана 2020-09-21 в 13.05.29"
Test script:
---------------
<?php
var_dump(pathinfo('Снимок ÑкÑана 2020-09-21 в
13.05.29.png', PATHINFO_FILENAME));
Expected result:
----------------
string(48) "Снимок ÑкÑана 2020-09-21 в 13.05.29"
Actual result:
--------------
string(36) " ÑкÑана 2020-09-21 в 13.05.29"
--
Edit bug report at https://bugs.php.net/bug.php?id=80130&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80130&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80130&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80130&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80130&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80130&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80130&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80130&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80130&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80130&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80130&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80130&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80130&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80130&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80130&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80130&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80130&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80130&r=mysqlcfg