Skip to content

Fix GH-20906: Assertion failure when messing up output buffers#20908

Closed
ndossche wants to merge 2 commits intophp:PHP-8.4from
ndossche:fix-20906
Closed

Fix GH-20906: Assertion failure when messing up output buffers#20908
ndossche wants to merge 2 commits intophp:PHP-8.4from
ndossche:fix-20906

Conversation

@ndossche
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if a better change for master is to make the highlighter not rely on the output buffering as it seems it gets discarded anyway in some cases.

Comment thread ext/standard/basic_functions.c Outdated
@ndossche
Copy link
Copy Markdown
Member Author

It's not getting discarded. Either returned as string or sent to the output

@Girgias
Copy link
Copy Markdown
Member

Girgias commented Jan 11, 2026

It's not getting discarded. Either returned as string or sent to the output

Right, I meant "discarded" when returning it as a string, which I guess ideally shouldn't rely on the output buffering.

@ndossche ndossche requested a review from Girgias February 26, 2026 19:53
@ndossche ndossche closed this in 1709689 Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assertion failure in zif_highlight_string when messing up output buffers

3 participants