Re: [PHP4BETA] (Fwd) Re: [PHP4BETA] cvs: /php4 ChangeLog /php4/ext/standard basic_functions.c basic_functions.h
| From: | Sascha Schumann | Date: | Fri, 08 Oct 1999 14:45:50 +0000 |
| Subject: | Re: [PHP4BETA] (Fwd) Re: [PHP4BETA] cvs: /php4 ChangeLog /php4/ext/standard basic_functions.c basic_functions.h | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-5392@lists.php.net to get a copy of this message | ||
On Fri, Oct 08, 1999 at 09:25:30AM -0500, Andrei Zmievski wrote:
> Sascha Schumann wrote:
> > Nope. As I stated earlier, qsort isn't broken (even not on
> > Solaris), so there is no reason to replace it.
>
> Ok, then it doesn't make sense to introduce merge_sort since we can just copy
> zend_hash_sort() and swap the entries around manually. I just didn't want to
> do that because zend_hash_sort() uses a lot of internal structures like
> Bucket* and calls like HANDLE_INTERRUPTIONS().
Now we get into public interface vs. implementation details
problems.
Zend guys, can we have an extended sort function which takes
a pointer to the qsort function? Then we could pass a pointer
to an alternative sort routine.
--
Regards,
Sascha Schumann
Consultant