Skip to content

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.

3 participants