#18905 [NEW]: apache 2.0.40 changed template for register_*_filter adding additonal arg
| From: | jon dot tankersley at ds dot com | Date: | Wed, 14 Aug 2002 14:43:04 +0000 |
| Subject: | #18905 [NEW]: apache 2.0.40 changed template for register_*_filter adding additonal arg | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-16777@lists.php.net to get a copy of this message | ||
From: jon.tankersley@ds.com
Operating system: Solaris 2.8
PHP version: 4.2.2
PHP Bug Type: Apache related
Bug description: apache 2.0.40 changed template for register_*_filter adding additonal arg
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 bug report at http://bugs.php.net/?id=18905&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18905&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18905&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18905&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18905&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18905&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18905&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18905&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18905&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18905&r=globals