diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-10-16 20:45:36 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-10-16 20:45:36 +0000 |
commit | 8361687a4a077f2776736fc1b9f8552285d2d780 (patch) | |
tree | cc137bd6867985c6c3f816746385e99e973f824e | |
parent | 7b0949b005d9ce93453e5f697103ec22282f8680 (diff) | |
download | php-git-8361687a4a077f2776736fc1b9f8552285d2d780.tar.gz |
Fixed a bug with .phps handler.
-rw-r--r-- | sapi/apache2filter/sapi_apache2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index 0963558ff1..ab5770eea9 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2filter/sapi_apache2.c @@ -443,7 +443,7 @@ static int php_output_filter(ap_filter_t *f, apr_bucket_brigade *bb) apr_file_name_get(&path, ((apr_bucket_file *) b->data)->fd); /* Determine if we need to parse the file or show the source */ - if (!strncmp(ctx->r->handler, "application/x-httpd-php", sizeof("application/x-httpd-php"))) { + if (strncmp(ctx->r->handler, "application/x-httpd-php-source", sizeof("application/x-httpd-php-source"))) { zfd.type = ZEND_HANDLE_FILENAME; zfd.filename = (char *) path; zfd.free_filename = 0; |