Re: Re: cvs: pear /Image_Barcode ChangeLog Readme.txt barcode_img.php package.xml test-image-barcode.php /Image_Barcode/Barcode Code39.php ean13.php
int25.php upca.php
| From: | Alan Knowles | Date: | Thu, 26 May 2005 15:09:13 +0000 |
| Subject: | Re: Re: cvs: pear /Image_Barcode ChangeLog Readme.txt barcode_img.php package.xml test-image-barcode.php /Image_Barcode/Barcode Code39.php ean13.php int25.php upca.php |
||
| References: | 1 2 3 4 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-2744@lists.php.net to get a copy of this message | ||
On Thu, 2005-05-26 at 09:46 -0400, Daniel Convissor wrote:
> Hi Stephan:
>
> On Thu, May 26, 2005 at 12:27:52AM +0200, Stephan Schmidt wrote:
> > Please don't use file_exists(), as it does not check in your include
> > path.
>
> Oh yeah. Wasn't thinking about that aspect.
>
> What DB does is provides a "debug" configuration option. This concept can
> be used here. If "debug" is false, use the @ suppressed include, but if
> "debug" is true, do a regular include.
That is one of the most annoying features of DB, that unfortunatly
probably cant change due to BC... - a typo in the dsn, or include paths
set up wrong, or just a bit of bad debugging code inserted into a driver
can cause a cryptic error message (or sudden silent death), rather than
the nice clear 'required file can not be found ........' message that
PHP gives...
Regards
Alan
>
> --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
>