diff options
author | Alex Porto dos Santos <31667409+alexporto2200@users.noreply.github.com> | 2019-10-17 15:39:22 -0300 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-10-17 23:39:55 +0200 |
commit | a6a2d167d8311fbca950f92f1771f66d02683b9d (patch) | |
tree | 4ebe56c9b52553c7ffeb603bf1fb1b7584135088 /ext/ext_skel.php | |
parent | cf85eb24685ebf7eea3ad018d0674b22730d6542 (diff) | |
download | php-git-a6a2d167d8311fbca950f92f1771f66d02683b9d.tar.gz |
Update array access syntax deprecated
Update array access syntax deprecated in line 175 and 204
Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/alex/php/hello/ext_skel.php on line 175
Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/alex/php/hello/ext_skel.php on line 204
Diffstat (limited to 'ext/ext_skel.php')
-rwxr-xr-x | ext/ext_skel.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ext_skel.php b/ext/ext_skel.php index ea8df0ac7d..5f45ed5146 100755 --- a/ext/ext_skel.php +++ b/ext/ext_skel.php @@ -174,7 +174,7 @@ function process_args($argv, $argc) { { $val = $argv[$i]; - if($val{0} != '-' || $val{1} != '-') + if($val[0] != '-' || $val[1] != '-') { continue; } @@ -203,7 +203,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; |