Date: Tue, 13 Aug 2002 22:28:11 -0500 From: Fox <foxbsd@gristle.to> To: freebsd-questions@FreeBSD.ORG Subject: apache 2.0 and mod_php4 and headless server Message-ID: <5.0.2.1.0.20020813221615.026fb0f0@pop-server.austin.rr.com>
next in thread | raw e-mail | index | archive | help
Greetings,
I just recently tries to build the mod_php4 port with WITH_APACHE2 defined.
It almost worked until it tried to compile sapi_apache.c
It then complained about ap_register_output_filter() and
ap_register_input_filter(), at line 534, having too few parameters. I
grep'd through the apache source and discovered that the php code was
missing the third parameter. I also learned that it was usually NULL.
So I changed:
ap_register_output_filter("PHP", php_output_filter, AP_FTYPE_RESOURCE);
ap_register_input_filter("PHP", php_input_filter, AP_FTYPE_RESOURCE);
to
ap_register_output_filter("PHP", php_output_filter, NULL, AP_FTYPE_RESOURCE);
ap_register_input_filter("PHP", php_input_filter, NULL, AP_FTYPE_RESOURCE);
in /usr/ports/www/mod_php4/work/php-4.2.2/sapi/apache2filter/sapi_apache.c
then it completed compiling and installed successfully (as far as I can tell).
My question is, where can I find the declaration of this function, and will
setting that parameter to NULL actually work, or just cause me a crash
later down the road.
And thanks to Ryan, Chris and Martin who answered my headless server
question, that information was very helpful.
Sincerely,
Dudley Fox
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.0.2.1.0.20020813221615.026fb0f0>
