From 341b21ee1f32b7ca677cbd63277b8d55abf3e8b6 Mon Sep 17 00:00:00 2001 From: Michael van Tricht Date: Wed, 23 Mar 2016 11:17:42 +0100 Subject: [PATCH] [FileSystem] Add support for Google App Engine. --- src/Symfony/Component/Filesystem/Filesystem.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/Filesystem/Filesystem.php b/src/Symfony/Component/Filesystem/Filesystem.php index 4a69ff767f769..2a6cffa8c0a48 100644 --- a/src/Symfony/Component/Filesystem/Filesystem.php +++ b/src/Symfony/Component/Filesystem/Filesystem.php @@ -486,13 +486,13 @@ public function tempnam($dir, $prefix) { list($scheme, $hierarchy) = $this->getSchemeAndHierarchy($dir); - // If no scheme or scheme is "file" create temp file in local filesystem - if (null === $scheme || 'file' === $scheme) { + // If no scheme or scheme is "file" or "gs" create temp file in local filesystem + if (null === $scheme || 'file' === $scheme || 'gs' === $scheme) { $tmpFile = tempnam($hierarchy, $prefix); // If tempnam failed or no scheme return the filename otherwise prepend the scheme if (false !== $tmpFile) { - if (null !== $scheme) { + if (null !== $scheme && 'gs' !== $scheme) { return $scheme.'://'.$tmpFile; } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy