PHP_Compat, best approach
| From: | Aidan Lister | Date: | Wed, 26 May 2004 07:27:08 +0000 |
| Subject: | PHP_Compat, best approach | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-29682@lists.php.net to get a copy of this message | ||
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?