File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Symfony/Component/Filesystem Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -486,13 +486,13 @@ public function tempnam($dir, $prefix)
486486 {
487487 list ($ scheme , $ hierarchy ) = $ this ->getSchemeAndHierarchy ($ dir );
488488
489- // If no scheme or scheme is "file" create temp file in local filesystem
490- if (null === $ scheme || 'file ' === $ scheme ) {
489+ // If no scheme or scheme is "file" or "gs" create temp file in local filesystem
490+ if (null === $ scheme || 'file ' === $ scheme || ' gs ' === $ scheme ) {
491491 $ tmpFile = tempnam ($ hierarchy , $ prefix );
492492
493493 // If tempnam failed or no scheme return the filename otherwise prepend the scheme
494494 if (false !== $ tmpFile ) {
495- if (null !== $ scheme ) {
495+ if (null !== $ scheme && ' gs ' !== $ scheme ) {
496496 return $ scheme .':// ' .$ tmpFile ;
497497 }
498498
You can’t perform that action at this time.
0 commit comments