iliaa           Wed Oct 16 16:45:38 2002 EDT

  Modified files:              
    /php4/sapi/apache2filter    sapi_apache2.c 
  Log:
  Fixed a bug with .phps handler.
  
  
Index: php4/sapi/apache2filter/sapi_apache2.c
diff -u php4/sapi/apache2filter/sapi_apache2.c:1.87 
php4/sapi/apache2filter/sapi_apache2.c:1.88
--- php4/sapi/apache2filter/sapi_apache2.c:1.87 Fri Oct  4 17:31:34 2002
+++ php4/sapi/apache2filter/sapi_apache2.c      Wed Oct 16 16:45:36 2002
@@ -443,7 +443,7 @@
                        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;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to