Re: array_diff() failures
| From: | Andrei Zmievski | Date: | Fri, 29 Dec 2000 00:18:27 +0000 |
| Subject: | Re: array_diff() failures | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-42492@lists.php.net to get a copy of this message | ||
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