ID: 18905
Comment by: php@james.tavares.name
Reported By: jon.tankersley@ds.com
Status: Open
Bug Type: Apache related
Operating System: Solaris 2.8
PHP Version: 4.2.2
New Comment:
I am experiencing this issue as well on Debian GNU/Linux 3.0.
I have compiled Apache 2.0.40 and attempting to compile php 4.2.2:
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:534: warning: passing arg 3 of
`ap_register_output_filter' makes pointer from integer without a cast
sapi_apache2.c:534: too few arguments to function
`ap_register_output_filter'
sapi_apache2.c:535: warning: passing arg 3 of
`ap_register_input_filter' makes pointer from integer without a cast
sapi_apache2.c:535: too few arguments to function
`ap_register_input_filter'
Previous Comments:
------------------------------------------------------------------------
[2002-08-14 10:43:03] jon.tankersley@ds.com
From 4.2.2 sapi_apache2.c:
static void php_register_hook(apr_pool_t *p)
{
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);
}
From apache 2.0.39 include/util_filter.h:
* @param name The name to attach to the filter function
* @param filter_func The filter function to name
* @param ftype The type of filter function, either ::AP_FTYPE_CONTENT
or
* ::AP_FTYPE_CONNECTION
* @see ap_add_output_filter()
*/
AP_DECLARE(ap_filter_rec_t *) ap_register_output_filter(const char
*name,
ap_out_filter_func
filter_func,
ap_filter_type ftype);
From apache 2.0.40 include/util_filter.h:
* @param name The name to attach to the filter function
* @param filter_func The filter function to name
* @param ftype The type of filter function, either ::AP_FTYPE_CONTENT
or
* ::AP_FTYPE_CONNECTION
* @see ap_add_output_filter()
*/
AP_DECLARE(ap_filter_rec_t *) ap_register_output_filter(const char
*name,
ap_out_filter_func
filter_func,
ap_init_filter_func
filter_init,
ap_filter_type ftype);
Similar problem with register_input_filter.
My config setup is as follows, with apache 2.0.40 installed in
/usr/local/gnu/test
CC=gcc ./configure --verbose --prefix=/usr/local/gnu --with-zlib
--with-bz2=/usr/local/gnu --with-jpeg-dir=/usr/local/gnu
--with-tiff-dir=/usr/local/gnu --with-gdbm=/usr/local/gnu
--with-gd=/usr/local/gnu --with-ttf=/usr/local/gnu
--with-xpm-dir=/usr/local/gnu --with-png-dir=/usr/local/gnu
--with-mysql=/usr/local/gnu --with-apxs2=/usr/local/gnu/test/bin/apxs
--with-axps2=/usr/local/gnu/test/bin/apxs
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18905&edit=1