|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19256 When compiling the apache2filter the sapi_apache2.c failed to compile
Submitted: 2002-09-05 15:31 UTC Modified: 2002-09-05 15:34 UTC
From: info at hvdata dot net Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.2.2 OS: FreeBSD 4.6.2
Private report: No CVE-ID: None
 [2002-09-05 15:31 UTC] info at hvdata dot net
The function: ap_register_output_filter and ap_register_input_filter were failing to compile.  After some looking I found that the functions were passed 3 arguements, but looking at the prototype from Apache 2.0.40 in util_filter.h the functions required 4 arguements:

AP_DECLARE(ap_filter_rec_t *) ap_register_input_filter(const char *name, ap_in_filter_func filter_func, ap_init_filter_func filter_init, ap_filter_type ftype);

But the code was calling: 
ap_register_output_filter("PHP", php_output_filter, AP_FTYPE_RESOURCE);

So I added: ap_register_output_filter("PHP", php_output_filter, NULL,  AP_FTYPE_RESOURCE);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-05 15:32 UTC] info at hvdata dot net
With the changes this section finished compiling.
 [2002-09-05 15:33 UTC] info at hvdata dot net
Corrected with my code snippit, this should be added to the distribution.
 [2002-09-05 15:34 UTC]
And it was, long ago.  As documented, PHP 4.2.x doesn't really support Apache2 yet.  4.3 will have better support.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 12:01:28 2024 UTC