Bug #81336 [NEW]: & in filename doesn't read file with file
| From: | remco dot pc at outlook dot com | Date: | Fri, 06 Aug 2021 10:49:17 +0000 |
| Subject: | Bug #81336 [NEW]: & in filename doesn't read file with file | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-235632@lists.php.net to get a copy of this message | ||
From: remco dot pc at outlook dot com
Operating system:
PHP version: 8.0.9
Package: Filesystem function related
Bug Type: Bug
Bug description:& in filename doesn't read file with file
Description:
------------
when a filename has an ampersand in it (&) the file exist is true, but
file read with file() or file_get_contents doesn't read the file
Test script:
---------------
$read = file('test&.mp3');
dd($read);
--
Edit bug report at https://bugs.php.net/bug.php?id=81336&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81336&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81336&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81336&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81336&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81336&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81336&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81336&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81336&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81336&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81336&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81336&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81336&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81336&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81336&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81336&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81336&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81336&r=mysqlcfg