示例#1
0
 /**
  * Destroy instances in pool.
  */
 public static function destroy()
 {
     foreach (self::$instances as $inst) {
         //force free resources, in case any other references.
         $inst->close();
         $inst = null;
     }
     self::$instances = array();
     self::$configs = null;
 }