#19256 [Opn->Csd]: When compiling the apache2filter the sapi_apache2.c failed to compile
| From: | info at hvdata dot net | Date: | Thu, 05 Sep 2002 20:33:03 +0000 |
| Subject: | #19256 [Opn->Csd]: When compiling the apache2filter the sapi_apache2.c failed to compile | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-18524@lists.php.net to get a copy of this message | ||
ID: 19256
User updated by: info@hvdata.net
Reported By: info@hvdata.net
-Status: Open
+Status: Closed
Bug Type: Apache2 related
Operating System: FreeBSD 4.6.2
PHP Version: 4.2.2
New Comment:
Corrected with my code snippit, this should be added to the
distribution.
Previous Comments:
------------------------------------------------------------------------
[2002-09-05 15:32:01] info@hvdata.net
With the changes this section finished compiling.
------------------------------------------------------------------------
[2002-09-05 15:31:26] info@hvdata.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);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19256&edit=1