cvs: php4 /sapi/apache2filter sapi_apache2.c

From: Date: Wed, 16 Oct 2002 20:45:38 +0000
Subject: cvs: php4 /sapi/apache2filter sapi_apache2.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-14968@lists.php.net to get a copy of this message
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;

« previous php.cvs (#14968) next »