[php-maint] Bug#357522: mime_magic warnings about application/x-awk
Norbert Veber
nveber at pyre.virge.net
Fri Mar 17 20:48:49 UTC 2006
Package: libapache-mod-php4
Version: 4:4.4.2-1
Severity: important
Hi,
I run apache through inetd on my system. Recently I installed a new
version of libmagic1 which is causing php to print a warning to stdout
every time apache is run. This extra junk on stdout causes clients to
be unable to connect to apache.
ie.
$ telnet pyre.virge.net https
Trying 206.248.139.39...
Connected to pyre.
Escape character is '^]'.
PHP Warning: mime_magic: type regex BEGIN[[:space:]]*[{]
application/x-awk invalid in Unknown on line 0
Apparently its complaining about line 273 in /usr/share/file/magic.mime:
0 regex BEGIN[[:space:]]*[{] application/x-awk
This in the only line in the file that has a regex rule.
According to http://ca3.php.net/mime_magic:
Note: This extension is not capable of handling the fully decorated
magic file that generally comes with standard Linux distro's and is
supposed to be used with recent versions of file command.
Perhaps php should ship and use its own magic file?
In the mean time, the only way I can get apache working again is to
disable php4.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-k7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages libapache-mod-php4 depends on:
ii apache-common 1.3.34-2 support files for all Apache webse
ii debconf [debc 1.4.72 Debian configuration management sy
ii libbz2-1.0 1.0.3-2 high-quality block-sorting file co
ii libc6 2.3.6-3 GNU C Library: Shared libraries an
ii libcomerr2 1.38+1.39-WIP-2005.12.31-1 common error description library
ii libdb4.3 4.3.29-5 Berkeley v4.3 Database Libraries [
ii libexpat1 1.95.8-3 XML parsing C library - runtime li
ii libgdbm3 1.8.3-2 GNU dbm database routines (runtime
ii libkrb53 1.4.3-6 MIT Kerberos runtime libraries
ii libmagic1 4.17-1 File type determination library us
ii libpcre3 6.4-1.1 Perl 5 Compatible Regular Expressi
ii libssl0.9.8 0.9.8a-8 SSL shared libraries
ii libzzip-0-12 0.12.83-5 library providing read access on Z
ii mime-support 3.36-1 MIME files 'mime.types' & 'mailcap
ii php4-common 4:4.4.2-1 Common files for packages built fr
ii zlib1g 1:1.2.3-11 compression library - runtime
libapache-mod-php4 recommends no packages.
-- debconf information excluded
More information about the pkg-php-maint
mailing list