php-src/pear/scripts/pearcmd-show-config.php
Stig Bakken 615f110d4e * modularize "pear" and "pear-get" commands somewhat. checking options
etc. is done for both in pearcmd-common.php.
2002-01-30 12:20:12 +00:00

16 lines
307 B
PHP

<?php
$keys = $config->getKeys();
foreach ($keys as $key) {
$value = $config->get($key);
$xi = "";
if ($config->isDefaulted($key)) {
$xi .= " (default)";
}
if (isset($fallback_done[$key])) {
$xi .= " (built-in)";
}
printf("%s = %s%s\n", $key, $value, $xi);
}
?>