Bug #18204 Updated: Wrong calls of ap_register_output_filter and ap_register_input_filter functions

From: Date: Sun, 07 Jul 2002 10:43:13 +0000
Subject: Bug #18204 Updated: Wrong calls of ap_register_output_filter and ap_register_input_filter functions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13367@lists.php.net to get a copy of this message
ID: 18204 Updated by: krok@void.ru Reported By: krok@void.ru -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: FreeBSD 4.6-RELEASE-p1 i386 PHP Version: 4CVS-2002-07-06 New Comment: /usr/local/apache2/bin/httpd -v Server version: Apache/2.0.39 Server built: Jul 6 2002 17:42:06 [krok@frost] /home/krok$ /usr/local/apache2/bin/httpd -l Compiled in modules: core.c prefork.c http_core.c mod_so.c [krok@frost] /home/krok$ /usr/local/apache2/bin/httpd -V Server version: Apache/2.0.39 Server built: Jul 6 2002 17:42:06 Server's Module Magic Number: 20020612:1 Architecture: 32-bit Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 -D APR_USE_FLOCK_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT="/usr/local/apache2" -D SUEXEC_BIN="/usr/local/apache2/bin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="logs/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" [krok@frost] /home/krok$ Previous Comments: ------------------------------------------------------------------------ [2002-07-06 21:49:27] sniper@php.net Please let me know the output of 'httpd -v' ------------------------------------------------------------------------ [2002-07-06 21:18:18] krok@void.ru There are wrong calls of ap_register_output_filter and ap_register_input_filter functions in the php_register_hook function. File sapi/apache2filter/sapi_apache2.c lines 567 and 568. Instead of ap_register_output_filter("PHP", php_output_filter, NULL, AP_FTYPE_RESOURCE); ap_register_input_filter("PHP", php_input_filter, NULL, AP_FTYPE_RESOURCE); you must use ap_register_output_filter("PHP", php_output_filter, AP_FTYPE_RESOURCE); ap_register_input_filter("PHP", php_input_filter, AP_FTYPE_RESOURCE); because in the apache2 api there are only three parameters in these functions. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18204&edit=1

« previous php.bugs (#13367) next »