Skip to content

PHP 8: Where can I submit a patch? Is the JIT enabled?

QUESTION

Who? What? When? Where? Why? How?

Hi I have two questions related to the recent upgrade to PHP 8

  1. Where can I submit a patch for? https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/revcomp-php-3.html

The fix seems simple. $line = fgets(STDIN); can sometimes be boolean false. PHP 8 emits stricter warnings than previous versions. Could probably be:

while (true) {
    $line = fgets(STDIN);
    if ($line && $line[0] === '>') {
  1. PHP is usually run with Opcache enabled. PHP 8 has a new JIT. Opcache is required to use it.

I don't see that under NOTES. Can you confirm the tests are being run with Opcache and JIT? Without those, PHP is severely hindered. More info:

https://stitcher.io/blog/php-8-jit-setup

Edited by Dac Chartrand