Debian Bug report logs -
#491033
php5 mime_magic - invalid magic file disabled
Reported by: Steffen Ille <steffen@steffen-ille.de>
Date: Wed, 16 Jul 2008 05:09:02 UTC
Severity: normal
Found in version php5/5.2.5-3
Done: Ondřej Surý <ondrej@sury.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#491033; Package php5.
(full text, mbox, link).
Acknowledgement sent to Steffen Ille <steffen@steffen-ille.de>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
-----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-----
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#491033; Package php5.
(full text, mbox, link).
Acknowledgement sent to "Raphael Geissert" <atomo64@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #10 received at 491033@bugs.debian.org (full text, mbox, reply):
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@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@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
Bug 491033 cloned as bug 492442.
Request was from "Raphael Geissert" <atomo64@gmail.com>
to control@bugs.debian.org.
(Sat, 26 Jul 2008 05:27:02 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#491033; Package php5.
(Sun, 22 Aug 2010 13:57:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Lior Kaplan <lior.k@zend.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Sun, 22 Aug 2010 13:57:03 GMT) (full text, mbox, link).
Message #17 received at 491033@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi,
I encountered this errors myself, and crated a patch for magic.mime to
remove all the lines that PHP (5.2.14) complained about.
Enjoy
Lior Kaplan
Zend Technologies Ltd.
[491033_magic.mime.patch (text/x-patch, attachment)]
Reply sent
to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility.
(Thu, 21 Oct 2010 11:21:16 GMT) (full text, mbox, link).
Notification sent
to Steffen Ille <steffen@steffen-ille.de>:
Bug acknowledged by developer.
(Thu, 21 Oct 2010 11:21:16 GMT) (full text, mbox, link).
Message #22 received at 491033-done@bugs.debian.org (full text, mbox, reply):
Version 5.2.6-5
Closing bugs found only in etch (or something in between etch and
lenny) versions which are no longer supported.
--
Ondřej Surý <ondrej@sury.org>
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 19 Nov 2010 07:32:24 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 00:20:22 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.