Add interfaces for File and Directory wrappers

This commit is contained in:
Robin Appelman 2014-07-30 23:51:55 +02:00
commit b876cef7f2
5 changed files with 124 additions and 3 deletions

View file

@ -62,7 +62,7 @@ class CallbackWrapper extends Wrapper {
return $wrapped;
}
public function stream_open() {
public function stream_open($path, $mode, $options, &$opened_path) {
$context = $this->loadContext('callback');
if (isset($context['read']) and is_callable($context['read'])) {