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: Date: Thu, 26 May 2005 07:46:18 +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  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-2741@lists.php.net to get a copy of this message
Stephan Schmidt wrote:
Hi, Daniel Convissor schrieb:
@include_once("Image/Barcode/${type}.php"); Second, the @ suppresses all errors inside the included file, not just the include call itself. Before doing the include, do a file_exists check and return a PEAR error if the file doesn't exist.
Please don't use file_exists(), as it does not check in your include path. Using @include_once is IMHO the only way to achieve what he's trying to do.
The problem though is that silencing an include can cause for some annoying bugs. Since internals prefers to not support our needs, I have made my own fileExists that checks the include path. Not perfect, but better than the other options. See MDB2 for details. regards, Lukas

« previous php.pear.qa (#2741) next »