Re: PHP_Compat, best approach
| From: | Daniel Convissor | Date: | Wed, 26 May 2004 19:06:17 +0000 |
| Subject: | Re: PHP_Compat, best approach | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-29726@lists.php.net to get a copy of this message | ||
On Wed, May 26, 2004 at 05:27:08PM +1000, Aidan Lister wrote:
>
> if ($split_length < 1) {
> trigger_error("str_split() [function.str-split]: The the length of each
> segment must be greater then zero.", E_USER_WARNING);
> return false;
> }
>
> Rather than simply returning false...
Why not raise a PEAR Error? Then the users can handle them however they
want?
--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