Пример #1
0
 /**
  * statvfs()
  * @param  string   $path Path
  * @param  callable $cb   Callback
  * @param  integer  $pri  Priority
  * @return resource|false
  */
 public static function statvfs($path, $cb, $pri = EIO_PRI_DEFAULT)
 {
     $cb = CallbackWrapper::forceWrap($cb);
     if (!self::$supported) {
         call_user_func($cb, $path, false);
         return false;
     }
     return eio_statvfs($path, $pri, $cb, $path);
 }
Пример #2
0
 public static function statvfs($path, $cb, $pri = EIO_PRI_DEFAULT)
 {
     if (!self::$supported) {
         call_user_func($cb, $path, false);
         return;
     }
     return eio_statvfs($path, $pri, $cb, $path);
 }