add option to clear the files in the static streamwrapper

This commit is contained in:
Robin Appelman 2013-06-28 19:41:28 +02:00
parent 6ddfe2029c
commit 156e72a0c4

View file

@ -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':