websvnのversion2.3.0がリリースされていたので、インストールする。これを機にPHPのバージョンも5.3にあげたのだが、一部はまったので、メモしておく。
$ cp $websvnhome/include/distconfig.php $websvnhome/include/config.php $ diff -c $websvnhome/include/config.php $websvnhome/include/distconfig.php
*** include/config.php 2010-04-16 01:25:22.678982822 +0900 --- include/distconfig.php 2009-12-04 14:53:49.000000000 +0900 *************** *** 21,29 **** // config.php // // Configuration parameters ! //Date_default_timezone_set ! date_default_timezone_set('Asia/Tokyo'); // --- FOLLOW THE INSTRUCTIONS BELOW TO CONFIGURE YOUR SETUP --- // {{{ PLATFORM CONFIGURATION --- // Configure the path for Subversion to use for --config-dir --- 21,29 ---- // config.php // // Configuration parameters ! // --- FOLLOW THE INSTRUCTIONS BELOW TO CONFIGURE YOUR SETUP --- + // {{{ PLATFORM CONFIGURATION --- // Configure the path for Subversion to use for --config-dir *************** *** 32,52 **** // Configure these lines if your commands aren't on your path. // ! // $config->setSVNCommandPath('/usr/bin/svn'); // e.g. c:\\program files\\subversion\\bin ! // $config->setDiffPath('/usr/bin/diff'); // For syntax colouring, if option enabled... ! // $config->setEnscriptPath('/usr/bin/enscript'); ! // $config->setSedPath('/bin/sed'); // For delivered tarballs, if option enabled... ! // $config->setTarPath('/bin/tar'); // For delivered GZIP'd files and tarballs, if option enabled... ! // $config->setGZipPath('/bin/gzip'); // download folder/file zipped ... ! // $config->setZipPath('/usr/bin/zip'); // }}} --- 32,52 ---- // Configure these lines if your commands aren't on your path. // ! // $config->setSVNCommandPath('Path/to/svn/command/'); // e.g. c:\\program files\\subversion\\bin ! // $config->setDiffPath('Path/to/diff/command/'); // For syntax colouring, if option enabled... ! // $config->setEnscriptPath('Path/to/enscript/command/'); ! // $config->setSedPath('Path/to/sed/command/'); // For delivered tarballs, if option enabled... ! // $config->setTarPath('Path/to/tar/command/'); // For delivered GZIP'd files and tarballs, if option enabled... ! // $config->setGZipPath('Path/to/gzip/command/'); // download folder/file zipped ... ! // $config->setZipPath('Path/to/zip/command/'); // }}} *************** *** 178,184 **** // Set the default language. If you want English then don't do anything here. // ! $config->setDefaultLanguage('ja'); // Ignore the user supplied accepted languages to choose reasonable default language. // If you want to force the default language - regardless of the client - uncomment the following line. --- 175,181 ---- // Set the default language. If you want English then don't do anything here. // ! // $config->setDefaultLanguage('en'); // Ignore the user supplied accepted languages to choose reasonable default language. // If you want to force the default language - regardless of the client - uncomment the following line.
下記がセットされていないと、php5.3だとエラーがでる。
date_default_timezone_set('Asia/Tokyo');
どうやら、date_default_timezone_set()をセットしないと警告がでるらしい。これをセットする方法は2つあり、下記の通り。
* date_default_timezone_set関数で定義する * php.ini で設定する