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

Raphael Geissert atomo64 at gmail.com
Sat Jul 26 05:25:12 UTC 2008


clone 491033 -1
reassign -1 wnpp
severity -1 wishlist
retitle -1 RFP: php-fileinfo -- php binding to libmagic (a.k.a. file)
to determine file types
thanks


2008/7/16 Steffen Ille <steffen at steffen-ille.de>:
> -----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.

search/400 indicates to the parser that it should start looking for
the pattern after 400 bytes.

I am willing to mark this bug as wontfix because mime_magic is
deprecated (and has been for some time) and fileinfo (only available
at pecl.php.net; not yet packaged for Debian) doesn't suffer from this
kind of bugs because it makes use of libmagic, which is what the file
command uses.

>
> 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-----
>
>
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-php-maint
>


Cheers,
-- 
Atomo64 - Raphael

Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html





More information about the pkg-php-maint mailing list