@@ 452-454 (lines=3) @@ | ||
449 | // The call results of metadata() are cached so we can just use the class property. |
|
450 | $this->getMetadata(); |
|
451 | ||
452 | if (isset(self::$rwh['read'][$this->metadata['mode']])) { |
|
453 | $this->status->set(interfaces\Stream::READABLE); |
|
454 | } |
|
455 | ||
456 | if (isset(self::$rwh['write'][$this->metadata['mode']])) { |
|
457 | $this->status->set(interfaces\Stream::WRITABLE); |
|
@@ 456-458 (lines=3) @@ | ||
453 | $this->status->set(interfaces\Stream::READABLE); |
|
454 | } |
|
455 | ||
456 | if (isset(self::$rwh['write'][$this->metadata['mode']])) { |
|
457 | $this->status->set(interfaces\Stream::WRITABLE); |
|
458 | } |
|
459 | ||
460 | // Those may change, so... besides - fancy syntax, eh chaps? |
|
461 | $this->status->{((isset($this->metadata['seekable']) && $this->metadata['seekable']) ? 'set' : 'remove')}(interfaces\Stream::SEEKABLE); |