LoginSignup
1
0

More than 1 year has passed since last update.

phar ファイルを解凍する

Posted at

環境

  • Cent OS 7
  • PHP 5.4.16 (cli)

発生した問題

過去に他人によってビルドされた phar ファイルの挙動を変更する必要があるが、 phar アーカイブ前のソースコードが残っていない。

解決方法

phar コマンドを用いて、 phar アーカイブファイル (<file_name>.phar) を解凍する。

[PHP] pharファイルの固め方と解凍の仕方-ぬこのおなかの忘備録 (itneko.blogspot.com)

phar コマンドファイルについては、 php-cli の RPM パッケージにバンドルされていた。

# rpm -qf /usr/bin/phar
php-cli-5.4.16-48.el7.x86_64
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0