Re: PHP_Compat, best approach

From: Date: Wed, 26 May 2004 07:39:16 +0000
Subject: Re: PHP_Compat, best approach
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-29683@lists.php.net to get a copy of this message
Current example script of the "problem" http://imho.ath.cx/examples/phpcompat.php "Aidan Lister" <aidan@php.net> wrote in message news:20040526072718.80278.qmail@pb1.pair.com... > A couple of emails from users got me thinking - should I throw the same > erorrs PHP does when the function is used incorrectly? > > For example: > > 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... > > I'm not sure if I should link the manual pages (some people have html errors > disabled in php.ini, etc) or what... > > What do you guys think?

« previous php.pear.dev (#29683) next »