cli switch to ignore a certain extension
まだ誰も着手していません。
- 主要言語
- C
- スター
- 40.4k
- フォーク
- 8.2k
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 96
説明
Description
when running php on the CLI its sometimes usefull to use the default config, but ignore only certain extensions.
(e.g. because these extension bring a perf hit when loaded, like blackfire or xdebug)
atm its quite some work to invoke PHP via cli, with all the default settings but just a single extension not loaded.
see e.g. composer/xdebug-handler which needs a lot of code to just make the use-case work for xdebug alone. I would need a similar thing for blackfire (and maybe another one for tideways).
I manually tried using php -n -dextension= ..<all loaded extensions here except xdebug> but this does not work.
(I think I would need to replicate most of the logic in composer/xdebug-handler)
would this problem be more easily solved with a new cli option at php-src level, which would allow to use the default but disable certain given extensions?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
issue にはファイルやテストの名前が挙げられていません。まず、PHP CLI のオプション処理と、-dextension と併用した場合の -n の動作を追跡してください。名前付きの拡張機能を除外しながらデフォルト設定を維持する方法を確認し、その後、maintainer とオプションのスコープおよび完了条件を定義してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- php
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100