On Tue, Oct 27, 2009 at 10:17:01PM -0400, Moacir de Oliveira wrote:
> Fala Thiago,
> 
> 2009/10/27 Thiago H. Pojda <thiago.po...@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

Reply via email to