ApacheフィルターとPHP
特定のContent-type(text/html)のみ処理を行うよう
static int hoge_filter(ap_filter_t *f, apr_bucket_brigade *bb) { if (ap_strcmp_match(f->r->content_type, "text/html*")) { :
としていたところ、Apache2.0.x+PHP4.3.1の組み合わせで、Content-typeがtext/htmlなPHPスクリプトにリクエストした場合、
f->r->content_type == "application/x-httpd-php"
が返り、PHP4.3.2からは、
f->r->content_type == "text/html"
が返るようです。。。なんだかなぁ。。。> PHP