Open barryvdh opened 5 years ago
Ohh that's very interesting… I have just uploaded the build script so that it can be reviewed and tested: https://github.com/mnapoli/bref/pull/106
As you can see in the php.ini
I enable opcache, but maybe something wrong is happening 🤔
I might need to explicitly set the php.ini file. Is it loaded in your other benchmarks? What is the php.ini location?
It is set here:
But it is set correctly in your benchmark too:
So I don't understand. Maybe this flag doesn't work?
Yeah that works for the current request indeed. Need to pass it to the server like this:
$server = new Process("php -S localhost:8000 -c /opt/php.ini -d extension_dir=/opt/php/extensions {$handler} ");
Will create a PR
Right that makes sense! Thanks!
Let's keep that open, I think C
needs to be updated too (and for some reason it stopped working while I was working on it, seemed to be stuck in an infinite wait or loop).
When I'm calling
opcache_get_status()
I get:Call to undefined function opcache_get_status()
. When checkingphpinfo()
it shows that opcache is enabled in the compilation, but did you also include the opcache.so extension? And it should be enabled + enabled for cli + validate timestamps should be disabled.