php / php/php-src

embed sapi unable to load tokenizer, undefined symbol zend_ce_stringable

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

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

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

説明

Description

Experimenting with the sample embed sapi code and build instructions from the provided readme. I also have the tokenizer extension installed. The php cli sapi works just fine. And php -m reports the tokenizer extension loaded. However, the embed sapi throws a warning about being unable to load tokenizer due to an undefined symbol, zend_ce_stringable. I suspect other extensions that utilize this class will also fail to load in the same way.

Any ideas what am I missing here? This might not be a bug (apologies if not), but I'm just not seeing what isn't being loaded to make tokenizer happy. Feels like a bug or a documentation oversight. Will poke at it some more tomorrow.

FreeBSD main, PHP 8.1.10

PHP Version

PHP 8.1.10

Operating System

FreeBSD main

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

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

はじめの一歩

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

調査の方向性

サンプルの embed SAPI コードと提供されている README/build 手順から始め、embed SAPI と CLI が tokenizer 拡張機能をどのように読み込むかを比較します。未定義シンボルの原因が embed build にあるのか拡張機能の読み込みにあるのかを確認し、警告なしで tokenizer が読み込まれるか、ドキュメントで必要なセットアップが説明されれば、issue は解決済みとします。

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

評価

技術スタック
c
領域
backend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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