Re: Building docs w/ PhD

From: Date: Fri, 30 Oct 2009 14:40:30 +0000
Subject: Re: Building docs w/ PhD
References: 1 2 3 4 5  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969381071@lists.php.net to get a copy of this message
On Tue, Oct 27, 2009 at 10:17:01PM -0400, Moacir de Oliveira wrote: > Fala Thiago, > > 2009/10/27 Thiago H. Pojda <thiago.pojda@gmail.com> > > > $ phd -d doc-base/.manual.xml --package PHP ... > > fopen(/usr/local/lib/php//HaruDoc.php): failed to open stream: No such > > file or directory I just committed a change to avoid the warning by using is_readable() instead of fopen() here. ... > > PHP Fatal error: Uncaught exception 'Exception' with message 'Cannot find > > file for HaruDoc: /usr/local/lib/php//HaruDoc.php' in /usr/local/bin/phd:14 Why is an exception thrown here? Exceptions aren't used anywhere else in PhD. Let alone, it is distracting to have an unhandled exception. I will change it to a v(<message>, E_USER_ERROR) call unless there's a good reason for the exception. Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.doc (#969381071) next »