2020-12-16 17:34:27 +00:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
|
|
|
|
2021-09-28 10:27:17 +00:00
|
|
|
require_once __DIR__ . '/_bootstrap.php';
|
2020-12-16 17:34:27 +00:00
|
|
|
|
|
|
|
$requiredHandlers = array_map('strtolower', [
|
|
|
|
'db4',
|
|
|
|
]);
|
|
|
|
$supportedHandlers = array_map('strtolower', dba_handlers(false));
|
|
|
|
$missingHandlers = array_diff($requiredHandlers, $supportedHandlers);
|
|
|
|
if ($missingHandlers !== []) {
|
|
|
|
sort($missingHandlers);
|
|
|
|
fwrite(STDERR, "DBA does NOT support these handlers:\n- " . implode("\n- ", $missingHandlers) . "\n");
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
echo "DBA supports at least these handlers:\n- ", implode("\n- ", $requiredHandlers), "\n";
|