Skip to content

Conversation

@ndossche
Copy link
Member

No description provided.

Copy link
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.


if (i) {
php_output_start_default();
if (php_output_start_default() != SUCCESS) {
Copy link
Member

Choose a reason for hiding this comment

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

Add UNEXPECTED()?

@ndossche
Copy link
Member Author

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

@Girgias
Copy link
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.

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

2 participants