[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: upgrade to subversion 1.8.5 suspected bug

From: Ryan Schmidt <subversion-2014_at_ryandesign.com>
Date: Wed, 22 Jan 2014 00:26:27 -0600

On Jan 20, 2014, at 23:04, Austin Mico <un.f.m.o.j_at_gmail.com> wrote:

> If you have this code below which can be viewed exactly like this on browser on version 1.8.4
> <?php
>
> // Define path to application directory
> defined('APPLICATION_PATH')
> || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
>
> // Define application environment
> defined('APPLICATION_ENV')
> || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
>
> // Ensure library/ is on include_path
> set_include_path(implode(PATH_SEPARATOR, array(
> realpath(APPLICATION_PATH . '/../library'),
> get_include_path(),
> )));
>
> /** Zend_Application */
> require_once 'Zend/Application.php';
>
> // Create application, bootstrap, and run
> $application = new Zend_Application(
> APPLICATION_ENV,
> APPLICATION_PATH . '/configs/application.ini'
> );
> $application->bootstrap()
> ->run();
>
>
> Here is the the source code viewed on browser after installing 1.8.5-1.
>
> bootstrap() ->run();

Thatís exactly what I get *if* the server is sending this with the MIME type text/html. Is it?

On my system, when the svn:mime-type property of this file is not set, it uses the MIME type application/x-httpd-php for .php files, which causes the browser to not display it at all but rather download it.

If you want it to display it unaltered, you could have the server send the MIME type text/plain.
Received on 2014-01-22 07:27:21 CET

This is an archived mail posted to the Subversion Users mailing list.