diff --git a/src/XmlStringStreamer/Stream/File.php b/src/XmlStringStreamer/Stream/File.php index 6e9d6d9..4994dca 100644 --- a/src/XmlStringStreamer/Stream/File.php +++ b/src/XmlStringStreamer/Stream/File.php @@ -16,13 +16,8 @@ public function __construct($mixed, $chunkSize = 16384, $chunkCallback = null) // Account for common stream/URL wrappers before checking if a file exists $realPath = $mixed; if (preg_match('/^([\w.]+):\/\//', $realPath, $matched)) { - if (preg_match('/(http|ftp|php|data|ssh2)/', $matched[1])) { - // Disable file_exists() check - $realPath = null; - } else { - // Remove wrapper for file_exists() check. - $realPath = substr($realPath, strlen($matched[0])); - } + // Disable file_exists() check + $realPath = null; } // If there's a real disk path to check, make sure it exists if ($realPath !== null && !file_exists($realPath)) {