-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
PHPUnit 8.5.27 does not work on PHP 7.2.0-7.2.18 and PHP 7.3.0-7.3.5 #5016
Comments
I am sorry but support for outdated versions such as 7.3.0 is not something I am able to provide. |
That's understandable! Anyone else who runs into it can know that simply downgrading to |
I will try my best to look into this, though. Please provide a minimal, self-contained, reproducing test case that shows the problem you are reporting. Without such a minimal, self-contained, reproducing test case I will not be able to investigate this issue. |
docker pull php:7.3.0-zts
docker run -it php:7.3.0-zts /bin/bash
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
class SomethingTest extends PHPUnit\Framework\TestCase
{
}
You should get the error I posted above:
|
I also have the same problem with PHP 7.2. And I think I have found the reason and in which PHP version it was fixed.
Nikita fixed it in PHP 7.2.18 and PHP 7.3.5 in a different context. Here you can find the related bug ticket: https://bugs.php.net/bug.php?id=77772. PHP 7.2.17 - ReflectionClass::getMethods(null): https://3v4l.org/bCJPA#v7.2.17
PHP 7.2.18 - ReflectionClass::getMethods(null): https://3v4l.org/bCJPA#v7.2.18
|
Summary
On PHP 7.3.0 / Ubuntu (note, this is not happening on 7.3.33 / MacOSX), I am getting the following fatal error when running phpunit. The tests are never executed. When I downgrade to
v8.5.26
, the tests run as expected.The text was updated successfully, but these errors were encountered: