From: Nikita Popov Date: Tue, 1 Dec 2020 12:02:29 +0000 (+0100) Subject: Don't try to open null file X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2d75286412480e440619bfc96a08d98fa0f9175;p=php Don't try to open null file If the loader is not found, directly return null, instead of trying to open it. --- diff --git a/ext/phar/phar/pharcommand.inc b/ext/phar/phar/pharcommand.inc index 1fb41dbb6a..4cf84ee551 100644 --- a/ext/phar/phar/pharcommand.inc +++ b/ext/phar/phar/pharcommand.inc @@ -259,7 +259,7 @@ class PharCommand extends CLICommand self::error($msg); } } - $arg = $found; + return null; } return self::cli_arg_typ_file($arg); }