mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-7.4'
* PHP-7.4: Update array access syntax deprecated
This commit is contained in:
@@ -172,7 +172,7 @@ function process_args($argv, $argc) {
|
||||
{
|
||||
$val = $argv[$i];
|
||||
|
||||
if($val{0} != '-' || $val{1} != '-')
|
||||
if($val[0] != '-' || $val[1] != '-')
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -201,7 +201,7 @@ function process_args($argv, $argc) {
|
||||
case 'ext':
|
||||
case 'dir':
|
||||
case 'author': {
|
||||
if (!isset($argv[$i + 1]) || ($argv[$i + 1]{0} == '-' && $argv[$i + 1]{1} == '-')) {
|
||||
if (!isset($argv[$i + 1]) || ($argv[$i + 1][0] == '-' && $argv[$i + 1][1] == '-')) {
|
||||
error('Argument "' . $val . '" expects a value, none passed');
|
||||
} else if ($opt == 'dir' && empty($argv[$i + 1])) {
|
||||
continue 2;
|
||||
|
||||
Reference in New Issue
Block a user