| @@ 192-201 (lines=10) @@ | ||
| 189 | * @param integer $pri Priority |
|
| 190 | * @return resource|true |
|
| 191 | */ |
|
| 192 | public static function stat($path, $cb, $pri = EIO_PRI_DEFAULT) |
|
| 193 | { |
|
| 194 | $cb = CallbackWrapper::forceWrap($cb); |
|
| 195 | if (!self::$supported) { |
|
| 196 | $cb($path, FileSystem::statPrepare(@stat($path))); |
|
| 197 | return true; |
|
| 198 | } |
|
| 199 | return eio_stat($path, $pri, function ($path, $stat) use ($cb) { |
|
| 200 | $cb($path, FileSystem::statPrepare($stat)); |
|
| 201 | }, $path); |
|
| 202 | } |
|
| 203 | ||
| 204 | /** |
|
| @@ 269-278 (lines=10) @@ | ||
| 266 | * @param integer $pri Priority |
|
| 267 | * @return resource|true |
|
| 268 | */ |
|
| 269 | public static function lstat($path, $cb, $pri = EIO_PRI_DEFAULT) |
|
| 270 | { |
|
| 271 | $cb = CallbackWrapper::forceWrap($cb); |
|
| 272 | if (!self::$supported) { |
|
| 273 | $cb($path, FileSystem::statPrepare(lstat($path))); |
|
| 274 | return true; |
|
| 275 | } |
|
| 276 | return eio_lstat($path, $pri, function ($path, $stat) use ($cb) { |
|
| 277 | $cb($path, FileSystem::statPrepare($stat)); |
|
| 278 | }, $path); |
|
| 279 | } |
|
| 280 | ||
| 281 | /** |
|