Bug #70408 [Opn->Nab]: Mime::add_mime

From: Date: Wed, 02 Sep 2015 13:17:44 +0000
Subject: Bug #70408 [Opn->Nab]: Mime::add_mime
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195701@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70408&edit=1 ID: 70408 Updated by: cmb@php.net Reported by: admin at angosso dot net Summary: Mime::add_mime -Status: Open +Status: Not a bug Type: Bug -Package: Java related +Package: *General Issues Operating System: Linux; Windows; Mac PHP Version: 7.0.0RC1 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2015-09-02 11:51:43] admin at angosso dot net 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 this bug report at https://bugs.php.net/bug.php?id=70408&edit=1

« previous php.bugs (#195701) next »