php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] rasmus@php.net
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: Thu Apr 25 22:01:29 2024 UTC