com php-src: Silence undefined index warning when openssl not available.: ext/phar/phar/pharcommand.inc
| From: | Sara Golemon | Date: | Tue, 15 Oct 2019 19:37:56 +0000 |
| Subject: | com php-src: Silence undefined index warning when openssl not available.: ext/phar/phar/pharcommand.inc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108924@lists.php.net to get a copy of this message | ||
Commit: 15d7cd9e1880b4187025616860c31653f9f8a2eb
Author: Sara Golemon <pollita@php.net> Tue, 15 Oct 2019 15:37:56 -0400
Parents: 8e06504e9484ae6ea269b5fc18bab94187cff084
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=15d7cd9e1880b4187025616860c31653f9f8a2eb
Log:
Silence undefined index warning when openssl not available.
Changed paths:
M ext/phar/phar/pharcommand.inc
Diff:
diff --git a/ext/phar/phar/pharcommand.inc b/ext/phar/phar/pharcommand.inc
index 86d8ad144e5..341e5f3465f 100644
--- a/ext/phar/phar/pharcommand.inc
+++ b/ext/phar/phar/pharcommand.inc
@@ -563,7 +563,7 @@ class PharCommand extends CLICommand
$hashbang = $this->args['b']['val'];
$archive = $this->args['f']['val'];
$hash = $this->args['h']['val'];
- $privkey = $this->args['y']['val'];
+ $privkey = $this->args['y']['val'] ?? null;
$regex = $this->args['i']['val'];
$level = $this->args['l']['val'];
$loader = $this->args['p']['val'];