// Append directive targets to paragraph foreach ($this->directives as $directive) { $root .= $directive; $appended = true; } $this->directives = array(); return $root . ($appended ? "\n" : ''); } } $ext = new ReflectionExtension('xdebug'); ksort($settings); echo "; This is a generated file, do not modify by hand\n\n"; foreach ($settings as $name => $info) { $w = str_repeat('-', 77); $xhtml = new ezcDocumentXhtml(); $xhtml->loadString(ignore_links($info[3])); $docbook = $xhtml->getAsDocbook(); // echo $docbook->save(), "\n\n"; $convertor = new drDocumentDoctookToTextConvertor(); $rst = $convertor->convert($docbook); $d = $rst->save(); $d = join("\n; ", explode("\n", $d)); echo <<<ENDL ; {$w} ; xdebug.{$name} ; ; Type: {$info[0]}, Default value: {$info[1]} ; ; {$d} ; ;xdebug.{$name} = {$info[1]}