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)
486
486
{
487
487
list ($ scheme , $ hierarchy ) = $ this ->getSchemeAndHierarchy ($ dir );
488
488
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 ) {
491
491
$ tmpFile = tempnam ($ hierarchy , $ prefix );
492
492
493
493
// If tempnam failed or no scheme return the filename otherwise prepend the scheme
494
494
if (false !== $ tmpFile ) {
495
- if (null !== $ scheme ) {
495
+ if (null !== $ scheme && ' gs ' !== $ scheme ) {
496
496
return $ scheme .':// ' .$ tmpFile ;
497
497
}
498
498
You can’t perform that action at this time.
0 commit comments