#!/usr/bin/env php
getINIEntries() as $name => $tmp) {
re("configuration.xml", "#$name#") or printf("\t%s (%s)\n", $name, $tmp);
}
printf("\n");
printf("Undocumented stream filters:\n");
foreach (preg_grep("/^$ext\./", stream_get_filters()) as $filter) {
fe(sprintf("streamfilters/%s.xml", substr($filter, 5))) or printf("\t%s\n", $filter);
}
printf("\n");
printf("Undocumented constants:\n");
foreach ($ref->getConstants() as $name => $tmp) {
re("constants.xml", "#$name#") or printf("\t%s (%s)\n", $name, $tmp);
}
printf("\n");
printf("Undocumented functions:\n");
foreach ($ref->getFunctions() as $func) {
/* @var $func ReflectionFunction */
fg(sprintf("functions/*/%s.xml", strtr($func->getName(),'_','-'))) or printf("\t%s()\n", $func->getName());
}
printf("\n");
printf("Undocumented classes/members:\n");
foreach ($ref->getClasses() as $class) {
if (substr($class->getName(), -strlen("Exception")) === "Exception") continue;
/* @var $class ReflectionClass */
fg(sprintf("%s.xml", $class->getName())) or printf(" %s\n", $class->getName());
foreach ($class->getConstants() as $name => $tmp) {
re($class->getName().".xml", "#>$name<#") or printf("\t%s::%s (%s)\n", $class->getName(), $name, $tmp);
}
foreach ($class->getProperties() as $prop) {
/* @var $prop ReflectionProperty */
$prop->isPrivate() or re($class->getName().".xml", "#>{$prop->getName()}<#") or printf("\t%s::$%s\n", $class->getName(), $prop->getName());
}
foreach ($class->getMethods() as $meth) {
/* @var $meth ReflectionMethod */
try {
$meth->getPrototype();
} catch (Exception $ex) {
// if getPrototype throws an exception it's definitely not a method declared in an interface
$meth->isPrivate() or fg(sprintf("%s/%s.xml", $class->getName(), strtr(trim($meth->getName(),'_'),'_','-'))) or printf("\t%s::%s()\n", $class->getName(), $meth->getName());
}
}
printf("\n");
}
printf("\n");
?>