|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-06-28 23:00 UTC] michael dot wolfram at smart-webwork dot de
-PHP Version: Irrelevant
+PHP Version: 7.2.5
[2018-06-28 23:00 UTC] michael dot wolfram at smart-webwork dot de
[2018-06-29 11:27 UTC] ab@php.net
-Status: Open
+Status: Not a bug
[2018-06-29 11:27 UTC] ab@php.net
[2018-06-30 02:28 UTC] a at b dot c dot de
[2019-12-04 10:10 UTC] ilya at taotesting dot com
[2019-12-04 10:12 UTC] ilya at taotesting dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 17:00:01 2025 UTC |
Description: ------------ function mime_content_type return false MIME-Type for a svg file. It returns image/svg instead of image/svg+xml. The function mimetype on ubuntu bash on same host returns the correct mimetype. PHP configuration: PHP 7.2.5-0ubuntu0.18.04.1 (cli) (built: May 9 2018 17:21:02) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.5-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies Test script: --------------- on ubuntu bash $ wget https://framework.zend.com/img/zend-framework-logo.svg // correct mimetype with bash function mimetype $ mimetype -M zend-framework-logo.svg // incorrect mimetype with php $ php -r 'echo mime_content_type("zend-framework-logo.svg");' Expected result: ---------------- image/svg+xml Actual result: -------------- image/svg