Re: Bugs in ext/standard/array.c
| From: | Rasmus Lerdorf | Date: | Sun, 09 Dec 2001 23:40:42 +0000 |
| Subject: | Re: Bugs in ext/standard/array.c | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72968@lists.php.net to get a copy of this message | ||
> Hi Guys,
>
> i have found some "Bugs" in the PHP source.
>
> 1. the XYsort() - functions return boolean on success,
> so the prototype is wrong (often void. or int (ksort()))
>
> 2. if these functions succeed, they return TRUE,
> if not, they return VOID. (example: asort())
> to my mind, they should return FALSE on error ...
> (like arsort() does!)
>
> Am I wrong?
Hrm.. There is no way to return VOID from a PHP function.
-Rasmus