1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 23:14:38 +01:00
MadelineProto/tests/jit.php
2023-12-31 13:42:58 +01:00

25 lines
493 B
PHP

<?php declare(strict_types=1);
$ok = true;
foreach (['pcntl', 'uv', 'ffi', 'pq', 'memprof', 'intl', 'gmp', 'mbstring', 'pdo_mysql', 'xml', 'dom', 'iconv', 'zip', 'igbinary', 'gd'] as $ext) {
if (!extension_loaded($ext)) {
$ok = false;
echo "$ext is not enabled!".PHP_EOL;
}
}
$status = opcache_get_status();
var_dump($status);
if (!$status["jit"]["on"]) {
echo "JIT is not enabled!".PHP_EOL;
die(1);
}
if (!$ok) {
die(1);
}
echo "OK!".PHP_EOL;
die(0);