[php-src] Issue #11011: mime_content_type(): Failed identify data 0:File 5.37 supports only version 16 magic files. `(null)' is version 17 in

From: Date: Tue, 04 Apr 2023 00:51:32 +0000
Subject: [php-src] Issue #11011: mime_content_type(): Failed identify data 0:File 5.37 supports only version 16 magic files. `(null)' is version 17 in
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244094@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11011 Author: dksoftware2130 ### Description The following code: ```php <?php return mime_content_type("rpms.txt"); ``` Resulted in this output: ``` Warning: mime_content_type(): Failed to load magic database in /root/script.php on line 3 Warning: mime_content_type(): Failed identify data 0:File 5.37 supports only version 16 magic files. `(null)' is version 17 in /root/script.php on line 3 Fatal error: Uncaught ValueError: Path cannot be empty in /root/script.php:3 Stack trace: #0 /root/script.php(3): mime_content_type('rpms.txt') #1 {main} thrown in /root/script.php on line 3 ``` ### PHP Version PHP 8.0.28 ### Operating System Fedora 37

« previous php.bugs (#244094) next »