Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Aug 2002 02:58:32 -0500
From:      "Jon Noack" <noackjr@rice.edu>
To:        <dirk@FreeBSD.org>
Cc:        <ports@FreeBSD.org>
Subject:   RE: mod_php4-4.2.2 and apache2-2.0.40
Message-ID:  <000001c24043$b8eafe70$0a01a8c0@COMPGEEK>

next in thread | raw e-mail | index | archive | help
That should be:

<patch>
--- sapi_apache2.c.orig Mon May  6 10:42:23 2002
+++ sapi_apache2.c      Sat Aug 10 02:37:01 2002
@@ -531,8 +531,8 @@
        ap_hook_post_config(php_apache_server_startup, NULL, NULL,
APR_HOOK_MIDDLE);
        ap_hook_insert_filter(php_insert_filter, NULL, NULL,
APR_HOOK_MIDDLE);
     ap_hook_post_read_request(php_post_read_request, NULL, NULL,
APR_HOOK_MIDDLE);
-       ap_register_output_filter("PHP", php_output_filter,
AP_FTYPE_RESOURCE);
-       ap_register_input_filter("PHP", php_input_filter,
AP_FTYPE_RESOURCE);
+       ap_register_output_filter("PHP", php_output_filter, NULL,
AP_FTYPE_RESOURCE);
+       ap_register_input_filter("PHP", php_input_filter, NULL,
AP_FTYPE_RESOURCE);
 }

 AP_MODULE_DECLARE_DATA module php4_module = {
</patch>

I'm an idiot...

Jon Noack

-----Original Message-----
From: Jon Noack [mailto:noackjr@rice.edu] 
Sent: Saturday, August 10, 2002 2:52 AM
To: 'dirk@FreeBSD.org'
Cc: 'ports@FreeBSD.org'
Subject: mod_php4-4.2.2 and apache2-2.0.40


A patch to sapi/apache2filter/sapi_apache2.c is needed to make the
mod_php4-4.2.2 port compile with the apache2-2.0.40 port.  Later
versions of this file in PHP CVS include the 'NULL' 3rd attribute for
the 2 affected lines.  Adding these allows the mod_php4-4.2.2 port to
compile and it appears to be fully functional (tested with the
www/gallery port, a PHP picture gallery).  The patch is below:

<patch>
--- sapi/apache2filter/sapi_apache2.c.orig Mon May  6 10:42:23 2002
+++ sapi/apache2filter/sapi_apache2.c      Sat Aug 10 02:37:01 2002
@@ -531,8 +531,8 @@
        ap_hook_post_config(php_apache_server_startup, NULL, NULL,
APR_HOOK_MIDDLE);
        ap_hook_insert_filter(php_insert_filter, NULL, NULL,
APR_HOOK_MIDDLE);
     ap_hook_post_read_request(php_post_read_request, NULL, NULL,
APR_HOOK_MIDDLE);
-       ap_register_output_filter("PHP", php_output_filter,
AP_FTYPE_RESOURCE);
-       ap_register_input_filter("PHP", php_input_filter,
AP_FTYPE_RESOURCE);
+       ap_register_output_filter("PHP", php_output_filter, NULL,
AP_FTYPE_RESOURCE);
+       ap_register_input_filter("PHP", php_input_filter, NULL, 
+ AP_FTYPE_RESOURCE);
 }

 AP_MODULE_DECLARE_DATA module php4_module = {
</patch>

Until they release the next version that should at least keep people
running...

Jon Noack




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001c24043$b8eafe70$0a01a8c0>