Skip to content

W.I.P. Zend: Add new Z_PARAM_DERIVED_CLASS_NAME Fast ZPP specifier - #23452

Draft
Girgias wants to merge 7 commits into
php:masterfrom
Girgias:2026-08-zpp-class-name-derived-from-ce
Draft

W.I.P. Zend: Add new Z_PARAM_DERIVED_CLASS_NAME Fast ZPP specifier#23452
Girgias wants to merge 7 commits into
php:masterfrom
Girgias:2026-08-zpp-class-name-derived-from-ce

Conversation

@Girgias

@Girgias Girgias commented Aug 25, 2026

Copy link
Copy Markdown
Member

No description provided.

Remove old specifiers, add new ones, accept unsigned char** for 's' and 'p'.
Some code modernization.

Still produces some errors but those require actual fixes or parsing improvements
Splitting the logic of Z_PARAM_CLASS with an assigned pointer actually obvious
@Girgias
Girgias force-pushed the 2026-08-zpp-class-name-derived-from-ce branch from d2bdb8f to 92a1a23 Compare August 25, 2026 14:22
foreach ($exp as $expected_type) {
$str .= "'$expected_type' or ";
}
rtrim($str, 'or ');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

2 classic mistakes: rtrim does return a new string, and also, the 'or ' will be interpreted as strip ' ' and 'r' and 'o'.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

duh, yes. Being a bit tired and was trying to get this to not emit warnings. So I didn't check that it emits a sensible warning.

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.

2 participants