how to return an error from an internal-function
| From: | Thies C. Arntzen | Date: | Mon, 20 Sep 1999 10:15:24 +0000 |
| Subject: | how to return an error from an internal-function | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-4653@lists.php.net to get a copy of this message | ||
hi i've noticed
basic_functions.c3169
if (input->type != IS_ARRAY) {
zend_error(E_WARNING, "First argument to array_keys() should be an array");
return;
}
shouldn't that read:
if (input->type != IS_ARRAY) {
zend_error(E_WARNING, "First argument to array_keys() should be an array");
RETURN_FALSE; /* or similar */
}
i know empty_string evaluates to false - but this is just a question of style -
tc
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany