Skip to content

Conversation

TimWolla
Copy link
Member

@TimWolla TimWolla commented Jan 8, 2025

As per the discussion in GH-17120, we are printing a placeholder value only. The commit history of that PR also includes alternative implementations, should a different decision be desirable.

Fixes GH-17096
Closes GH-17120

As per the discussion in phpGH-17120, we are printing a placeholder value only.
The commit history of that PR also includes alternative implementations, should
a different decision be desirable.

Fixes phpGH-17096
Closes phpGH-17120
break;
}
case ZEND_AST_OP_ARRAY:
smart_str_appends(str, "Closure(");
Copy link
Member

Choose a reason for hiding this comment

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

The format looks a bit non-standard, but I don't have a better suggestion.

@TimWolla TimWolla merged commit d8d1cb4 into php:master Jan 10, 2025
10 checks passed
@TimWolla TimWolla deleted the ast-op-array-print-crash branch January 10, 2025 07:37
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.

SIGABRT/SIGTRAP when using closures in attributes in PHP 8.5

2 participants