php / php/php-src

embed sapi unable to load tokenizer, undefined symbol zend_ce_stringable

Open
#9,635 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Extension: tokenizer SAPI: embed Status: Needs Triage Status: Verified
Dominant language
C
Stars
40.4k
Forks
8.1k
Avg merge
2d 13h
Merged PRs (30d)
96

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the sample embed SAPI code and the provided README/build instructions, then compare how the embed SAPI and CLI load the tokenizer extension. Confirm whether the undefined symbol is caused by the embed build or extension loading, and consider the issue resolved when tokenizer loads without the warning or the documentation explains the required setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.