-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Segfault on PHP 8.3 #11406
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
Comments
Can you isolate the test where this is occurring? |
Test that fails is EventAliasTest: ./phpunit src/Symfony/Bundle/SecurityBundle/Tests/Functional/EventAliasTest.php --testdox
|
The magic method trampoline closure may be variadic. However, the arg_info for the variadic argument was not set, resulting in a crash both in reflection and in the VM. Fix it by creating an arg_info containing a single element in case of the variadic case. The variadic argument is the last one (and in this case only one) in the arg_info array. We make sure the argument info is equivalent to the argument info of `$closure` of the following code snippet: ``` function foo(...$arguments) {} $closure = foo(...); ```
Thanks for fixing this @nielsdos! |
@nicolas-grekas Indeed, this bug only existed on master. |
Description
Sorry I don't have a better reproducer right now.
git clone https://github.com/symfony/symfony/ cd symfony composer install ./phpunit src/Symfony/Bundle/SecurityBundle
Never completes, eg this job:
PHP Version
PHP 8.3
Operating System
No response
The text was updated successfully, but these errors were encountered: