Linux/xoops/error
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
ns-lab
nowsky system-lab
DigiLoog
Linux
Windows
開始行:
*Strict Standards [#q4a873d9]
&size(16){&font(b){Strict Standards: Non-static method Xo...
~
php5.4を使用してxoopsを構築した際に発生。
php5.3の仕様とphp5.4の仕様では大きな違いがある為に発生す...
一番楽なのはphp5.3を使用する事だが、それが出来ない場合に...
~
# vi [XOOPS_ROOT_PATH]/class/errorhandler.php
-&size(16){&font(b){クラス名:XoopsErrorHandler};};
- function &getInstance()
- {
- static $instance = null;
- if (empty($instance)) {
- $instance = new XoopsErrorHandler;
- }
- return $instance;
- }
_/_/_/_/_/
+ public static function &getInstance()
+ {
+ static $instance = null;
+ if (empty($instance)) {
+ $instance = new XoopsErrorHandler;
+ }
+ return $instance;
+ }
~
# vi [XOOPS_ROOT_PATH]/class/database/database.php
-&size(16){&font(b){クラス名:Database};};
- function &getInstance()
- {
- $instance =& XoopsDatabaseFactory::getDatabaseC...
- return $instance;
- }
_/_/_/_/_/
+ public static function &getInstance()
+ {
+ $instance =& XoopsDatabaseFactory::getDatabaseC...
+ return $instance;
+ }
終了行:
*Strict Standards [#q4a873d9]
&size(16){&font(b){Strict Standards: Non-static method Xo...
~
php5.4を使用してxoopsを構築した際に発生。
php5.3の仕様とphp5.4の仕様では大きな違いがある為に発生す...
一番楽なのはphp5.3を使用する事だが、それが出来ない場合に...
~
# vi [XOOPS_ROOT_PATH]/class/errorhandler.php
-&size(16){&font(b){クラス名:XoopsErrorHandler};};
- function &getInstance()
- {
- static $instance = null;
- if (empty($instance)) {
- $instance = new XoopsErrorHandler;
- }
- return $instance;
- }
_/_/_/_/_/
+ public static function &getInstance()
+ {
+ static $instance = null;
+ if (empty($instance)) {
+ $instance = new XoopsErrorHandler;
+ }
+ return $instance;
+ }
~
# vi [XOOPS_ROOT_PATH]/class/database/database.php
-&size(16){&font(b){クラス名:Database};};
- function &getInstance()
- {
- $instance =& XoopsDatabaseFactory::getDatabaseC...
- return $instance;
- }
_/_/_/_/_/
+ public static function &getInstance()
+ {
+ $instance =& XoopsDatabaseFactory::getDatabaseC...
+ return $instance;
+ }
ページ名: