Ok, maybe I'm just plain clueless (wouldn't surprise me), but I am not getting this.
// STEP 3: GENERATE PHP DOCS IF SUPPORT FOR phpDocumentor IS FOUND
if ($hasPHPDocumentor) {
echo "Do you want to generate docs as defined using $phpDocumentorPath? (y/n Enter = n)";
ob_start();
readfile('php://stdin', 'r');
$response = ob_get_contents();
ob_end_clean();
if (strcmp(strtolower($response), 'y') == 0) generateDocs();
}
This does not work as expected. If you enter anything it will never exit the program.
I'm trying to have it so that if you enter 'y' then it does generateDocs(), if not, it exits.
Phil