-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
ReflectionFunction::getNamespaceName()
is broken for closures with PHP8.4
#16122
Comments
The output is definitely bad, but closures don't have a namespace. Not sure what the correct output would be. Related to #12907. |
Oh, I see this only changed in 8.4. |
The name was previously php-src/ext/reflection/php_reflection.c Lines 3605 to 3610 in 1da352c
|
This also affects |
…Name,inNamespace}() for closures Fixes phpGH-16122
…Name,inNamespace}() for closures (php#16129) * reflection: Fix the return value of ReflectionFunction::{getNamespaceName,inNamespace}() for closures Fixes phpGH-16122 * reflection: Clean up implementation of `ReflectionFunctionAbstract::inNamespace()` * reflection: Clean up implementation of `ReflectionFunctionAbstract::getNamespaceName()`
…Name,inNamespace}() for closures (php#16129) * reflection: Fix the return value of ReflectionFunction::{getNamespaceName,inNamespace}() for closures Fixes phpGH-16122 * reflection: Clean up implementation of `ReflectionFunctionAbstract::inNamespace()` * reflection: Clean up implementation of `ReflectionFunctionAbstract::getNamespaceName()`
Description
The following code:
Resulted in this output:
But I expected this output instead:
https://3v4l.org/QjjJK/rfc
PHP Version
PHP 8.4.0RC1
Operating System
No response
The text was updated successfully, but these errors were encountered: