From: Bjorn dot Wiberg at its dot uu dot se Operating system: IBM AIX 5.2.0.0 ML4 PHP version: 5.0.2 PHP Bug Type: Unknown/Other Function Bug description: Invalid magic file
Description: ------------ Hi! I have tried using both the /apache/etc/magic file from Apache 2.0.52 and the extras/magic.mime file (from the PHP 5.0.2 for Windows zip archive), but phpinfo() always tells me: mime_magic mime_magic support invalid magic file, disabled Directive Local Value Master Value mime_magic.debug On Off mime_magic.magicfile /apache/etc/magic no value I configured PHP with "--with-mime-magic" but without "--enable-debug", and have set the following in my httpd.conf: php_admin_flag display_errors off php_admin_flag display_startup_errors on php_admin_flag mime_magic.debug on php_admin_value mime_magic.magicfile "/apache/etc/magic" PHP mentions nothing about the erroneous magic file in the Apache error log, however. I would appreciate if someone could provide me with a known working magic.mime file to try. Thanks in advance! Best regards, Björn Reproduce code: --------------- Start Apache, run a PHP script containing phpinfo(), and watch the output. Expected result: ---------------- That mime_magic was enabled, and that there was nothing wrong with the magic file. Actual result: -------------- The mime_magic extension states that the magic file is invalid, but doesn't give any more information. -- Edit bug report at http://bugs.php.net/?id=30492&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30492&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30492&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30492&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30492&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30492&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30492&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30492&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30492&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30492&r=support Expected behavior: http://bugs.php.net/fix.php?id=30492&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30492&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30492&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30492&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30492&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30492&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30492&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30492&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30492&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30492&r=mysqlcfg