[php-maint] Bug#357373: why php4?

Robert Joop rj at rainbow.in-berlin.de
Mon Jul 24 18:47:21 UTC 2006


why is this bug assigned to package php4?
i get these error messages on a system that hasn't got any php installed
at all.

the error message originates in
apache_1.3.34/src/modules/standard/mod_mime_magic.c line 1765, so it
shows up in the source package apache and the binary package
apache-common.

...digging through the code i discover that the file parses the magic
file itself.
so i came up with the attached crude patch that you can put in
debian/patches/.
it just skips the offending line.
somebody should come up with a cleaner solution for this skipping or
implement regex support. :-)

rj
-------------- next part --------------
--- build-tree-apache/apache_1.3.34/src/modules/standard/mod_mime_magic.c.orig	2004-11-24 20:10:19.000000000 +0100
+++ build-tree-apache/apache_1.3.34/src/modules/standard/mod_mime_magic.c	2006-07-24 18:39:48.000000000 +0200
@@ -945,6 +945,16 @@
 	if (line[ws_offset] == '#')
 	    continue;
 
+	{
+	    char re[] = "0\tregex";
+	    if (!strncmp (line, re, strlen (re)))
+	    {
+	ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, s,
+		    MODNAME ": skipping unsupported regex line '%s'", line);
+	      continue;
+	    }
+	}
+
 #if MIME_MAGIC_DEBUG
 	/* if we get here, we're going to use it so count it */
 	rule++;


More information about the pkg-php-maint mailing list