public static function unregister($name) { if (!self::isRegistered($name)) { throw new RuntimeException("The stream wrapper is already registered not {$name}"); } stream_wrapper_unregister($name); }