- ini_set: documentation ( source)
- ini_get: documentation ( source)
<?php
// Source: https://bugs.php.net/bug.php?id=70237
ini_set('opcache.enable_cli', true);
if ((int) ini_get('opcache.enable_cli') !== 1) {
throw new Exception('Opcode cache must be enabled on CLI environment');
}
function neverUsed() {
$bool = false;
while ($bool) { };
// Same with: do { } while ($bool);
}
echo "OK";