Re: [PEPr] +1 for Tools and Utilities::Address_Book

From: Date: Sun, 05 Dec 2004 05:44:29 +0000
Subject: Re: [PEPr] +1 for Tools and Utilities::Address_Book
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34809@lists.php.net to get a copy of this message
On Sat, Dec 04, 2004 at 02:18:00AM -0000, Alan Knowles wrote: > > Alan Knowles (http://pear.php.net/user/alan_k) has voted +1 on the > proposal for Tools and Utilities::Address_Book. > > - safemode checking for fopen seems counter intuative - just remove the > @ from fopen, and expose the error if the system is set up wrong - let > the sysadmin fix it.. @fopen() is definitely better than a straight fopen(). If the open attempt fails, PHP generates a warning with file name and path information in it that the general public should not see. Turn track_errors on. If fopen() doesn't work, put $php_errormsg into the getDebugInfo() of an error object. The error object should have some generic message for getMessage() that says a file couldn't be opened, but doesn't give away any details. 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.pear.dev (#34809) next »