Req #80476 [NEW]: Asking for new feature : SplFileInfo->getMIMEType()
| From: | rdefaux at gmail dot com | Date: | Thu, 03 Dec 2020 07:02:02 +0000 |
| Subject: | Req #80476 [NEW]: Asking for new feature : SplFileInfo->getMIMEType() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-230813@lists.php.net to get a copy of this message | ||
From: rdefaux at gmail dot com
Operating system:
PHP version: 7.4.13
Package: Filesystem function related
Bug Type: Feature/Change Request
Bug description:Asking for new feature : SplFileInfo->getMIMEType()
Description:
------------
Hello,
It would be nice if the class SplFileInfo had the method
getMIMEType() : string|false
This method would return a string representing the MIME type (same
result as mime_content_type ( resource|string $filename ) function), or
false if the file doesn't exists or is not a file (I mean is a dir, a
symlink, etc...)
Thanks
Romaric
PS : it is the first time I ask for a request, I hope I'm doing it in a
proper way.
And thanks a lot too to all the PHP team for its wonderful work ! :)
--
Edit bug report at https://bugs.php.net/bug.php?id=80476&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80476&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80476&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80476&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80476&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80476&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80476&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80476&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80476&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80476&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80476&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80476&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80476&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80476&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80476&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80476&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80476&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80476&r=mysqlcfg