baserCMS XAMPPエラー 直す(´・ω・)ス | WEB系技術電脳日記

baserCMS XAMPPエラー 直す(´・ω・)ス

baserCMSをヲチしたいので、早速。
XXAMPP-USB-LITE 1.7.7 [PHP: 5.3.8] でテスト。
ちとエラー吐くので、修正。
エラー内容は、

Strict Standards: Redefining already defined constructor for class Object in
    C:\xampp\htdocs\cake\libs\object.php on line 62
Deprecated: Assigning the return value of new by reference is deprecated in
    C:\xampp\htdocs\cake\libs\inflector.php on line 130
Deprecated: Assigning the return value of new by reference is deprecated in
    C:\xampp\htdocs\cake\libs\configure.php on line 128
Deprecated: Assigning the return value of new by reference is deprecated in
    C:\xampp\htdocs\cake\libs\configure.php on line 218
Deprecated: Assigning the return value of new by reference is deprecated in
    C:\xampp\htdocs\cake\libs\configure.php on line 893
Deprecated: Assigning the return value of new by reference is deprecated in
    C:\xampp\htdocs\cake\libs\configure.php on line 933

cake\libs\inflector.php の3箇所 =& を = に置換。
cake\libs\configure.php 11箇所  =& を = に置換。
cake\libs\object.php の52行目付近の

function Object() {
$args = func_get_args();
if (method_exists($this, '__destruct')) {
register_shutdown_function (array(&$this, '__destruct'));
}
call_user_func_array(array(&$this, '__construct'), $args);
}

・・・をコメントアウトか削除。

インストール完了。

だが、ちと文字化け、やっつけXAMPP設定だったか。
次は文字化けを直す。
Xamppのデフォだと、latin1_swedish_ciだった。
InnoDB latin1_swedish_ci
さっそく直す。

xampp\mysql\bin内にあるmy.iniを修正
[mysqld] の後に追加

# The MySQL server
[mysqld]
character_set_server=utf8     ←追加
skip-character-set-client-handshake  ←追加

port= 3306
socket= "/xampp/mysql/mysql.sock"
basedir="/xampp/mysql"
tmpdir="/xampp/tmp"
datadir="/xampp/mysql/data"
pid_file="mysql.pid"

保存してMySQL再起動。


参照:http://forum.basercms.net/modules/newbb/viewtopic.php?topic_id=269&forum=2