質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

PHP

PHPは、Webサイト構築に特化して開発されたプログラミング言語です。大きな特徴のひとつは、HTMLに直接プログラムを埋め込むことができるという点です。PHPを用いることで、HTMLを動的コンテンツとして出力できます。HTMLがそのままブラウザに表示されるのに対し、PHPプログラムはサーバ側で実行された結果がブラウザに表示されるため、PHPスクリプトは「サーバサイドスクリプト」と呼ばれています。

Q&A

解決済

1回答

2828閲覧

PHP Fatal error: Uncaught Error: Call to undefined function each() in /usr/share/pear/Console/Getop

退会済みユーザー

退会済みユーザー

総合スコア0

Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

PHP

PHPは、Webサイト構築に特化して開発されたプログラミング言語です。大きな特徴のひとつは、HTMLに直接プログラムを埋め込むことができるという点です。PHPを用いることで、HTMLを動的コンテンツとして出力できます。HTMLがそのままブラウザに表示されるのに対し、PHPプログラムはサーバ側で実行された結果がブラウザに表示されるため、PHPスクリプトは「サーバサイドスクリプト」と呼ばれています。

0グッド

0クリップ

投稿2020/09/23 16:48

編集2020/09/23 16:53
[usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/PEAR/Registry.php on line 1190 [usuha@localhost ~]$ sudo vim -c 1190 /usr/share/pear/PEAR/Registry.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/PEAR/Registry.php on line 1241 [usuha@localhost ~]$ sudo vim -c 1241 /usr/share/pear/PEAR/Registry.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/PEAR/Registry.php on line 1265 [usuha@localhost ~]$ sudo vim -c 1265 /usr/share/pear/PEAR/Registry.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/PEAR/Registry.php on line 2207 [usuha@localhost ~]$ sudo vim -c 2207 /usr/share/pear/PEAR/Registry.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/PEAR/DependencyDB.php on line 177 [usuha@localhost ~]$ sudo vim -c 177 /usr/share/pear/PEAR/DependencyDB.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/PEAR/Installer/Role.php on line 240 [usuha@localhost ~]$ sudo vim -c 240 /usr/share/pear/PEAR/Installer/Role.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/System.php on line 268 [usuha@localhost ~]$ sudo vim -c 268 /usr/share/pear/System.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/Console/Getopt.php on line 129 [usuha@localhost ~]$ sudo vim -c 129 /usr/share/pear/Console/Getopt.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/Console/Getopt.php on line 144 [usuha@localhost ~]$ sudo vim -c 144 /usr/share/pear/Console/Getopt.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/Console/Getopt.php on line 147 [usuha@localhost ~]$ sudo vim -c 147 /usr/share/pear/Console/Getopt.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/Console/Getopt.php on line 189 [usuha@localhost ~]$ sudo vim -c 189 /usr/share/pear/Console/Getopt.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/Console/Getopt.php on line 193 [usuha@localhost ~]$ sudo vim -c 193 /usr/share/pear/Console/Getopt.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/Console/Getopt.php on line 202 [usuha@localhost ~]$ sudo vim -c 202 /usr/share/pear/Console/Getopt.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/Console/Getopt.php on line 203 [usuha@localhost ~]$ sudo vim -c 203 /usr/share/pear/Console/Getopt.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/Console/Getopt.php on line 297 [usuha@localhost ~]$ sudo vim -c 297 /usr/share/pear/Console/Getopt.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/Console/Getopt.php on line 301 [usuha@localhost ~]$ sudo vim -c 301 /usr/share/pear/Console/Getopt.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/pear/PEAR/Command.php on line 236 [usuha@localhost ~]$ sudo vim -c 236 /usr/share/pear/PEAR/Command.php [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick PHP Fatal error: Uncaught Error: Call to undefined function each() in /usr/share/pear/Console/Getopt.php:135 Stack trace: #(0 /usr/share/pear/Console/Getopt.php(74): Console_Getopt::doGetopt(2, Array, 'c:C:d:D:Gh?sSqu...', NULL, false) #1 /usr/share/pear/pearcmd.php(71): Console_Getopt::getopt2(Array, 'c:C:d:D:Gh?sSqu...') #2 /usr/share/pear/peclcmd.php(31): require_once('/usr/share/pear...') #3 {main} thrown in /usr/share/pear/Console/Getopt.php on line 135 エラーメッセージ PHP Fatal error: Uncaught Error: Call to undefined function each() in /usr/share/pear/Console/Getopt.php:135 Stack trace: #0 /usr/share/pear/Console/Getopt.php(74): Console_Getopt::doGetopt(2, Array, 'c:C:d:D:Gh?sSqu...', NULL, false) #1 /usr/share/pear/pearcmd.php(71): Console_Getopt::getopt2(Array, 'c:C:d:D:Gh?sSqu...') #2 /usr/share/pear/peclcmd.php(31): require_once('/usr/share/pear...') #3 {main} thrown in /usr/share/pear/Console/Getopt.php on line 135

このエラーメッセージには、どのような意味があるのでしょうか?

よろしくお願いします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

m.ts10806

2020/09/24 00:55

意味だけ知りたいならGoogle翻訳でも十分ですが、どういう意図がある質問なのでしょうか。 前提や背景、問題や課題を明記してください
退会済みユーザー

退会済みユーザー

2020/09/24 03:35 編集

エラーメッセージの意味だけを知りたかったので、Google翻訳が役に立ちます。 PHP 7.2 → PHP 8.0 にアップグレードしました。 後で、php-pear を 1:1.10.12-2.el8.remi にアップグレードしたらエラーメッセージは表示されなくなりました。 色々とありがとうございます。 OSは、Oracle Linux 8.2です。 Oracle Linux 8.2に、”LEMP(Percona server)+ phpMyAdmin + WordPress + FTP server”をインストールしています。 よろしくお願いします。
guest

回答1

0

ベストアンサー

$ sudo dnf install php-pear アップグレード中: php-pear noarch 1:1.10.12-2.el8.remi remi-modular 依存関係のインストール中: php-fedora-autoloader noarch 1.0.1-2.el8.remi remi-modular アップグレード済み: php-pear-1:1.10.12-2.el8.remi.noarch インストール済み: php-fedora-autoloader-1.0.1-2.el8.remi.noarch [usuha@localhost ~]$ sudo systemctl restart php-fpm [usuha@localhost ~]$ pecl upgrade imagick Nothing to upgrade

よろしくお願いいたします。

投稿2020/09/24 02:55

退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問