|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-09-20 21:49 UTC] git@php.net
[2021-09-20 21:49 UTC] git@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 13:00:01 2025 UTC |
Description: ------------ mime_content_type() indicates the wrong argument number when a TypeError is emitted. Test script: --------------- try { mime_content_type(1); } catch (\TypeError $e) { echo $e->getMessage() . \PHP_EOL; } Expected result: ---------------- mime_content_type(): Argument #1 ($filename) must be of type resource|string, int given Actual result: -------------- mime_content_type(): Argument #2 must be of type resource|string, int given