Skip to content
Snippets Groups Projects
Commit 156e72a0 authored by Robin Appelman's avatar Robin Appelman
Browse files

add option to clear the files in the static streamwrapper

parent 6ddfe202
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,10 @@ class StaticStream {
public function stream_flush() {
}
public static function clear() {
self::$data = array();
}
public function stream_open($path, $mode, $options, &$opened_path) {
switch ($mode[0]) {
case 'r':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment