mirror of
https://github.com/danog/jit_bugs.git
synced 2024-11-26 20:15:13 +01:00
32 lines
771 B
PHP
32 lines
771 B
PHP
|
<?php
|
||
|
|
||
|
var_dump(`rm -rf /tmp/aaa.madeline`);
|
||
|
|
||
|
register_shutdown_function(function () {
|
||
|
$status = opcache_get_status(false);
|
||
|
var_dump($status);
|
||
|
|
||
|
if ($status["memory_usage"]["free_memory"] < 10*1024*1024) {
|
||
|
echo "Not enough free opcache memory!".PHP_EOL;
|
||
|
}
|
||
|
if ($status["interned_strings_usage"]["free_memory"] < 1*1024*1024) {
|
||
|
echo "Not enough free interned strings memory!".PHP_EOL;
|
||
|
}
|
||
|
if ($status["jit"]["buffer_free"] < 10*1024*1024) {
|
||
|
echo "Not enough free JIT memory!".PHP_EOL;
|
||
|
}
|
||
|
if (!$status["jit"]["on"]) {
|
||
|
echo "JIT is not enabled!".PHP_EOL;
|
||
|
}
|
||
|
|
||
|
unset($status);
|
||
|
gc_collect_cycles();
|
||
|
});
|
||
|
|
||
|
$argc--;
|
||
|
array_shift($argv);
|
||
|
|
||
|
$_SERVER['argc']--;
|
||
|
array_shift($_SERVER['argv']);
|
||
|
|
||
|
require $argv[0];
|