Fix syntax mistake
This commit is contained in:
parent
9f428b3e4c
commit
cd0d617dc1
@ -38,7 +38,7 @@ class Stream
|
||||
$opt = stream_context_get_options($this->context);
|
||||
if (!is_array($opt[self::WRAPPER_NAME]) ||
|
||||
!isset($opt[self::WRAPPER_NAME]['handler']) ||
|
||||
!($opt[self::WRAPPER_NAME]['handler'] instanceof Handler)
|
||||
!($opt[self::WRAPPER_NAME]['handler'] instanceof Handler) ||
|
||||
!isset($opt[self::WRAPPER_NAME]['stream_id']) ||
|
||||
!is_integer($opt[self::WRAPPER_NAME]['stream_id'])) return false;
|
||||
$this->_handler = $opt[self::WRAPPER_NAME]['handler'];
|
||||
@ -54,4 +54,4 @@ class Stream
|
||||
public function stream_lock($mode) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user