コード例 #1
0
 /**
  * Scans default locations for a mongodb server socket.
  *
  * @return string
  */
 public static function lookupSocket()
 {
     /* @var $path Io_Path */
     foreach (Io::tmpPathSystem() as $path) {
         if (preg_match('/mongo[-\\D.sock]/', $path->getPath())) {
             return $path->getPath();
         }
     }
     return null;
 }