Closed ambroisemaupate closed 2 years ago
Another workaround
Do not use Solarium\Client
but Solarium\Core\Client\Client
which does not include side-effects (runtime calls)
Solarium 6.3.0 will remove this constant.
If we want a stable 6.2 release "for the archives", we could release 6.2.7 with a hardcoded constant and 6.3.0 with the constant removed for ongoing development.
@mkalkbrenner What do you think?
I agree that we should go back for a hardcoded version number for some time. But I wonder if we could add a test that reproduces the issue to avoid such an error in the future
I tried a simple test, but there's two problems with it.
You can see the run in my fork. The PHP bug is unrelated to the behaviour we're seeing. I don't encounter it locally on PHP 8.1.
Solarium: 6.2.6 php: 8.1.8
When enabling
opcache.preload
on a Symfony project, it seems that the following constant is not available anymore:Description
How to reproduce
opcache.preload
preload.php
:Possible workaround
Maybe related to https://bugs.php.net/bug.php?id=77644
So disabling preloading on
src/Client.php
should allow PHP to executedefine()
call at runtime.