]> granicus.if.org Git - php/commitdiff
Don't try to open null file
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 1 Dec 2020 12:02:29 +0000 (13:02 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 1 Dec 2020 13:20:36 +0000 (14:20 +0100)
If the loader is not found, directly return null, instead of
trying to open it.

ext/phar/phar/pharcommand.inc

index 1fb41dbb6a75a1e713adb31d692758175b35b1a3..4cf84ee551d52efa5f2f452cbb70fc3ca0c18e9c 100644 (file)
@@ -259,7 +259,7 @@ class PharCommand extends CLICommand
                     self::error($msg);
                 }
             }
-            $arg = $found;
+            return null;
         }
         return self::cli_arg_typ_file($arg);
     }