Bug #70408 [NEW]: Mime::add_mime
| From: | admin at angosso dot net | Date: | Wed, 02 Sep 2015 11:51:45 +0000 |
| Subject: | Bug #70408 [NEW]: Mime::add_mime | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-195695@lists.php.net to get a copy of this message | ||
From: admin at angosso dot net
Operating system: Linux; Windows; Mac
PHP version: 7.0.0RC1
Package: Java related
Bug Type: Bug
Bug description:Mime::add_mime
Description:
------------
Function adds a MIME type to Apache
LiveAPI PHP Class
mod_php-4.4.0-r9
apache-2.0.54-r31
unable to upgrade to 7. Centos has not marked it stable yet.
mime_content_type() always returns a blank value.
echo mime_content_type('xface.jpg');
Test script:
---------------
$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
// Add MIME type of text/foo to .foo
$mime_add_mime = $cpanel->uapi(
'Mime', 'add_mime',
array(
'type' => 'text/index',
'extension' => '.exemple',
)
);
Error: The view for HomeController::display() was not found.
Error: Confirm you have created the file:
/home/angosson/rvnewsit/public_html/app/View/Themed/Rvglobal/Home/rundemo.tpl
Notice: If you want to customize this error message, create
app/View/Errors/missing_view.ctp
Expected result:
----------------
ext
string
Required
The file extension to associate with the MIME type.
Any valid file extension.
.txt
Creates a link to an object
--
Edit bug report at https://bugs.php.net/bug.php?id=70408&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70408&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70408&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70408&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70408&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70408&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70408&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70408&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70408&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70408&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70408&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70408&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70408&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70408&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70408&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70408&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70408&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70408&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70408&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70408&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70408&r=mysqlcfg