[php-maint] Bug#491033: php5 mime_magic - invalid magic file disabled

Steffen Ille steffen at steffen-ille.de
Wed Jul 16 05:05:28 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Package: php5
Version: 5.2.5-3

Dear Sir or Madam,
the Bug #335674 seems to be back.

Error: invalid magic file, disabled

I've anabled to log startup-errors and got the following Messages:

[16-Jul-2008 06:44:06] PHP Warning:  PHP Startup: :
(/usr/share/file/magic.mime:630) type search/400	\\input		text/x-tex
invalid in Unknown on line 0
[16-Jul-2008 06:44:06] PHP Warning:  PHP Startup: :
(/usr/share/file/magic.mime:631) type search/400	\\section
text/x-tex invalid in Unknown on line 0
[16-Jul-2008 06:44:06] PHP Warning:  PHP Startup: :
(/usr/share/file/magic.mime:632) type search/400	\\setlength
text/x-tex invalid in Unknown on line 0
[16-Jul-2008 06:44:06] PHP Warning:  PHP Startup: :
(/usr/share/file/magic.mime:633) type search/400	\\documentstyle
text/x-tex invalid in Unknown on line 0
[16-Jul-2008 06:44:06] PHP Warning:  PHP Startup: :
(/usr/share/file/magic.mime:634) type search/400	\\chapter
text/x-tex invalid in Unknown on line 0
[16-Jul-2008 06:44:06] PHP Warning:  PHP Startup: :
(/usr/share/file/magic.mime:635) type search/400	\\documentclass
text/x-tex invalid in Unknown on line 0
[16-Jul-2008 06:44:06] PHP Warning:  PHP Startup: :
(/usr/share/file/magic.mime:640) type regex
[Cc]onstant[[:space:]]+[Ss]tory	text/x-inform invalid in Unknown on line 0

If I comment out Line 630 ... 640 in the magic.mime file
PHP will enable mime_magic. Also if I change the type "search/400" to
"string" it will enable it, but I don't know if this is correct.

Please re-open the Bug to resolve the issue.

Best Regards,
Steffen Ille
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkh9gZgACgkQVuJPPVH73Jc8zgCg0177LWjaituOyNGv+xxialkf
W/4An1JEpcWdEhUkBcS1OtJIeNn3chBD
=ypii
-----END PGP SIGNATURE-----





More information about the pkg-php-maint mailing list