php / php/php-src

Install `*.stub.php` for use with the `phpize` build environment

オープン
#18,520 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Feature Status: Needs Triage
主要言語
C
スター
40.4k
フォーク
8.2k
平均マージ
2日 13時間
マージ済み PR(30日)
96

説明

Description

I'm trying to use gen_stub.php to define an attribute class in an extension. gen_stub.php requires the zend_attributes.stub.php to be available to resolve the \Attribute::TARGET_X constants. For that purpose gen_stub.php has support for including other files as a dependency, which is already used for zend_test:

https://github.com/php/php-src/blob/e3715cddf075e2dcfb44aae2c8fa2a36069fc965/ext/zend_test/test.stub.php#L9

However this is not usable for external extensions, since the stub files are not part of a PHP installation / the phpize build environment. Only gen_stub.php itself and the generated arginfo.h headers are.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず gen_stub.php と依存関係の例である zend_test test.stub.php を読み、次に phpize が gen_stub.php と生成された arginfo.h をどのように公開しているかを追跡します。*.stub.php を除外しているインストール規則を特定し、外部拡張機能が PHP インストールまたは phpize 環境で stubs を利用できるようにします。外部拡張機能が zend_attributes.stub.php と Attribute::TARGET_X 定数を解決できることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
php
領域
build-system
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。