OSDN Git Service

fixed: references
authorSotaro KARASAWA <sotarok@users.sourceforge.jp>
Sat, 8 Jan 2011 16:21:08 +0000 (01:21 +0900)
committerSotaro KARASAWA <sotarok@users.sourceforge.jp>
Sat, 8 Jan 2011 16:21:08 +0000 (01:21 +0900)
Ethna.php
class/Controller.php

index a845408..1666df9 100644 (file)
--- a/Ethna.php
+++ b/Ethna.php
@@ -455,14 +455,14 @@ class Ethna
      *  @param  object  Ethna_Error     Ethna_Errorオブジェクト
      *  @static
      */
-    public static function handleError(&$error)
+    public static function handleError($error)
     {
         for ($i = 0; $i < count($GLOBALS['_Ethna_error_callback_list']); $i++) {
-            $callback =& $GLOBALS['_Ethna_error_callback_list'][$i];
+            $callback = $GLOBALS['_Ethna_error_callback_list'][$i];
             if (is_array($callback) == false) {
                 call_user_func($callback, $error);
             } else if (is_object($callback[0])) {
-                $object =& $callback[0];
+                $object = $callback[0];
                 $method = $callback[1];
 
                 // perform some more checks?
index 7cbb348..0038597 100644 (file)
@@ -203,7 +203,7 @@ class Ethna_Controller
         $this->class_factory = new $class_factory($this, $this->class);
 
         // エラーハンドラの設定
-        Ethna::setErrorCallback(array(&$this, 'handleError'));
+        Ethna::setErrorCallback(array($this, 'handleError'));
 
         // ディレクトリ名の設定(相対パス->絶対パス)
         foreach ($this->directory as $key => $value) {