#18905 [Bgs]: apache 2.0.40 changed template for register_*_filter adding additonal arg

From: Date: Wed, 14 Aug 2002 15:49:52 +0000
Subject: #18905 [Bgs]: apache 2.0.40 changed template for register_*_filter adding additonal arg
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16783@lists.php.net to get a copy of this message
 ID:               18905
 Updated by:       edink@php.net
 Reported By:      jon.tankersley@eds.com
 Status:           Bogus
 Bug Type:         Apache2 related
 Operating System: Solaris 2.8
 PHP Version:      4.2.2
 New Comment:

Just to to clarify:

This bug has been fixed in CVS. You can grab a snapshot of the CVS
version at http://snaps.php.net/.


Previous Comments:
------------------------------------------------------------------------

[2002-08-14 11:42:43] sander@php.net

Someone already fixed that months ago ;)

------------------------------------------------------------------------

[2002-08-14 10:46:50] sniper@php.net

Reclassified..


------------------------------------------------------------------------

[2002-08-14 10:46:25] jon.tankersley@eds.com

typo in email address.

------------------------------------------------------------------------

[2002-08-14 10:45:33] php@james.tavares.name

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'

------------------------------------------------------------------------

[2002-08-14 10:43:03] jon.tankersley@eds.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



Thread (12 messages)

« previous php.bugs (#16783) next »