Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix zend_register_internal_class_ex alias generation #8091

Merged
merged 1 commit into from
Feb 14, 2022

Conversation

TysonAndre
Copy link
Contributor

This wouldn't work for creating aliases in a namespace.

It would create the class alias "MyNS_ClassName" instead of
"MyNS\ClassName" for @alias MyNS\ClassName

This was probably copied from nearby code which created a C identifier, where _ was the proper separator,
but \\ is what should be used within a double quoted C string passed to zend_register_internal_class_ex

This has no impact in php build/gen_stub.php --force-regeneration for php-src itself

This wouldn't work for creating aliases in a namespace.

It would create the class alias "MyNS_ClassName" instead of
"MyNS\\ClassName"
@TysonAndre TysonAndre merged commit 0fab520 into php:PHP-8.1 Feb 14, 2022
@TysonAndre TysonAndre deleted the fix-alias-generation branch February 14, 2022 23:03
@kocsismate
Copy link
Member

Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants