From owner-freebsd-ports Sat Aug 10 0:58:44 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C3C9F37B400; Sat, 10 Aug 2002 00:58:40 -0700 (PDT) Received: from patriarch.dnsalias.org (adsl-65-71-34-229.dsl.hstntx.swbell.net [65.71.34.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id D14B643E42; Sat, 10 Aug 2002 00:58:39 -0700 (PDT) (envelope-from noackjr@rice.edu) Received: from COMPGEEK ([127.0.0.1]) by patriarch.dnsalias.org with Microsoft SMTPSVC(6.0.2600.1); Sat, 10 Aug 2002 02:58:37 -0500 Reply-To: From: "Jon Noack" To: Cc: Subject: RE: mod_php4-4.2.2 and apache2-2.0.40 Date: Sat, 10 Aug 2002 02:58:32 -0500 Message-ID: <000001c24043$b8eafe70$0a01a8c0@COMPGEEK> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-OriginalArrivalTime: 10 Aug 2002 07:58:37.0810 (UTC) FILETIME=[BBD54D20:01C24043] Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org That should be: --- 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 = { 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: --- 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 = { 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