Browse Source

fix notice

walkor 10 years ago
parent
commit
e119df8a29
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Worker.php

+ 2 - 2
Worker.php

@@ -429,7 +429,7 @@ class Worker
     {
     {
         foreach(self::$_workers as $worker_id=>$worker)
         foreach(self::$_workers as $worker_id=>$worker)
         {
         {
-            self::$_idMap[$worker_id] = array_fill(0, $woker->count, 0);
+            self::$_idMap[$worker_id] = array_fill(0, $worker->count, 0);
         }
         }
     }
     }
     
     
@@ -830,7 +830,7 @@ class Worker
         $id = array_search($pid, self::$_idMap[$worker_id]);
         $id = array_search($pid, self::$_idMap[$worker_id]);
         if($id === false)
         if($id === false)
         {
         {
-            echo "{$worker->name} getId fail\n";
+            echo "getId fail\n";
         }
         }
         return $id;
         return $id;
     }
     }