Re: [PHP-DEV] array_diff() failures From: Andrei Zmievski (andrei <email protected>)
Date: 12/28/00

At 01:14 AM 12/29/00 +0100, Stig Venaas wrote:
>I've now removed array_type_data_compare and am using array_data_compare
>with SORT_STRING. Seems to work well. Thanks for bringing this to my
>attention. If you think there still are problems, let me know. There
>were similar problems with array_unique() and array_intersect(), they
>should also be okay now.
>
>I don't like how SORT_REGULAR works and the fact that one can get
>segfaults on Solaris with sort() etc. but I guess it's a bit drastic
>to change it. Perhaps avoid the systems qsort when using SORT_REGULAR?
>What do you think?

Have you tried using mergesort instead of qsort?

-Andrei

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>