#19256 [NEW]: When compiling the apache2filter the sapi_apache2.c failed to compile

From: Date: Thu, 05 Sep 2002 20:31:26 +0000
Subject: #19256 [NEW]: When compiling the apache2filter the sapi_apache2.c failed to compile
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18522@lists.php.net to get a copy of this message
From: info@hvdata.net Operating system: FreeBSD 4.6.2 PHP version: 4.2.2 PHP Bug Type: Apache2 related Bug description: When compiling the apache2filter the sapi_apache2.c failed to compile 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 bug report at http://bugs.php.net/?id=19256&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19256&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19256&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19256&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19256&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19256&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19256&r=support Expected behavior: http://bugs.php.net/fix.php?id=19256&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19256&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19256&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19256&r=globals

« previous php.bugs (#18522) next »