]> granicus.if.org Git - php/commitdiff
Fixed a bug with .phps handler.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 16 Oct 2002 20:45:36 +0000 (20:45 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 16 Oct 2002 20:45:36 +0000 (20:45 +0000)
sapi/apache2filter/sapi_apache2.c

index 0963558ff1565bea464ca1dd02e4c9bc5136c14b..ab5770eea9ce77ad93434b88a54005d60272297f 100644 (file)
@@ -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;