mime_magic: type regex ... application/x-awk invalid

Bug #59183 reported by Pekka Jääskeläinen
12
Affects Status Importance Assigned to Milestone
php4 (Debian)
Fix Released
Unknown
php4 (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

I get the warning in topic when executing the php4 command line client:

For example:

php -v
PHP Warning: mime_magic: type regex BEGIN[[:space:]]*[{] application/x-awk invalid in Unknown on line 0
PHP 4.4.2-1.1 (cli) (built: Jun 20 2006 02:33:21)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

I thought I should report this if it's a sign of something more serious. I'm running the current Edgy version.

Revision history for this message
Pierre Buyle (mongolito404) wrote :

I had to comment line 273 of my /usr/share/file/magic.mime because the warning made lighttpd to crash/segfault php4-cgi.

Revision history for this message
Ronny Haryanto (ronnyh) wrote :

One workaround is to add the following lines to php.ini:

[mime_magic]
mime_magic.magicfile = "/etc/apache2/magic"

Revision history for this message
Angel Carpintero (sack) wrote :

I can reproduce the bug in php4-cli package from Edgy.

php4 -v
PHP Warning: mime_magic: type regex BEGIN[[:space:]]*[{] application/x-awk invalid in Unknown on line 0
PHP 4.4.2-1.1 (cli) (built: Jun 20 2006 02:33:21)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

# apt-cache show php4-cli

Package: php4-cli
Priority: optional
Section: universe/web
Installed-Size: 3040
Maintainer: Debian PHP Maintainers <email address hidden>
Architecture: i386
Source: php4
Version: 4:4.4.2-1.1
Replaces: php4-cgi (<< 4:4.3.8-6)
Provides: phpapi-20050606
Depends: libbz2-1.0, libc6 (>= 2.4-1), libcomerr2 (>= 1.33-3), libdb4.3 (>= 4.3.28-1), libexpat1 (>= 1.95.8), libgdbm3, libkrb53 (>= 1.4.2), libncurses5 (>= 5.4-5), libpcre3 (>= 4.5), libssl0.9.8 (>= 0.9.8a-1), libzzip-0-12 (>= 0.12.83), zlib1g (>= 1:1.2.1), mime-support (>= 2.03-1), php4-common (= 4:4.4.2-1.1), libmagic1
Suggests: php-pear
Filename: pool/universe/p/php4/php4-cli_4.4.2-1.1_i386.deb
Size: 1550318
MD5sum: 98f2cb890849e0ea93e0a4449d627afb
SHA1: a5856264db8dc1cd2bdf08c2340d2487fa339844
SHA256: 2496f1f3562e532aa9b930601246c30ee0e6bcbba8de9285cda63df1dcd04597

php4 doesn't depends on apache2 , so i think is not the way to fix it.

the bug comes from libmagic1 package , Pierre Buyle did the right fix as debian maintainer did also in libmagic from Etch.

So i think that ubuntu maintainer just should get libmagic version 4.17-5 from debian Etch and build a new package for Ubuntu , so 4.17-5ubuntu1 will fix that annoying problem.

Revision history for this message
ruy (ruyito) wrote :

This bug seems to be similar to one of debian http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=361789
I believe it also causes a segmentation fault of apache2 under certain conditions, that I have not yet identified.

Changed in php4:
importance: Undecided → Medium
status: New → Triaged
Changed in php4:
status: Unknown → New
Changed in php4:
status: New → Fix Released
Revision history for this message
JC Hulce (soaringsky) wrote :

We're closing this bug since it is has been some time with no response from the original bug reporter. However, if the issue still exists in the latest development version of Ubuntu and you are the original reporter please feel free to reopen with the requested information. If you are not the original reporter, please don't reopen this one but instead file a new bug and reference this one.

Changed in php4 (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.