|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: info at hvdata dot net
New email:
PHP Version: OS:


 [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-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 08 00:01:30 2023 UTC